Andys1
asked on
Converting .tsv files to .txt files in one go
Hello,
I have got the tsv files and would like to convert it to the .txt file in possibly one command.
For eg. converting 20070330.tsv, 20070427.tsv to 20070330.txt, 20070427.txt, etc.
Can anyone please help with tihs?
I have got the tsv files and would like to convert it to the .txt file in possibly one command.
For eg. converting 20070330.tsv, 20070427.tsv to 20070330.txt, 20070427.txt, etc.
Can anyone please help with tihs?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I used following formula to convert tsv files to txt files.
perl -e 'for( <*.tsv> ){ ($x=$_)=~s/sv$/xt/; rename $_,$x or warn "$x $!" }'