Sometimes I get a Tab separated (.tsv/.txt) file and I need to convert it to a Comma separated (.csv) file before I can import it into a database table.
On a Linux server:
Code:
tr -s '\t' <input | tr '\t' ',' >output
Substitute 'input' for the original filename and 'output' for the desired output filename.
No comments:
Post a Comment