Link to home
Start Free TrialLog in
Avatar of Andys1
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?
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Andys1
Andys1

ASKER

Ozo great help. BIG thank you!!!

I used following formula to convert tsv files to txt files.
perl -e 'for( <*.tsv> ){ ($x=$_)=~s/sv$/xt/; rename $_,$x or warn "$x $!" }'