10/07/2008

Perl Tip: Converting DOS to UNIX file format

It is as easy as changing all \r\n characters with \n to convert them to UNIX format. So, command line wise, this is all you have to do:
perl -pi -e 's/\r\n/\n/;' *.txt

2 comments:

judy zell said...

We are leading exhibition stand designers and builders based in saudi-arabia. We are involved in designing the exhibition booth and marketing display stalls for running trade fairs, marketing campaigns, promotional events, presentations in various saudi-arabia trade fairs.
booth builders

judy zell said...



We are leading exhibition stand designers and builders based in kuwait. We are involved in designing the exhibition booth and marketing display stalls for running trade fairs, marketing campaigns, promotional events, presentations in various kuwait trade fairs.
exhibition stand companies