/ Published in: Perl
Because sometimes "dos2unix" isn't available.
Expand |
Embed | Plain Text
perl -pi -e 's/ /\n/;' filename ...
Comments
Subscribe to comments
You need to login to post a comment.
Because sometimes "dos2unix" isn't available.
perl -pi -e 's/ /\n/;' filename ...
Subscribe to comments
You need to login to post a comment.
Hi,
unfortunately this line has no effect on non-DOS systems, see http://snipplr.com/view/20060/convert-dos-2-unix-oneliner/
This line was developed on non-DOS systems. Somehow the content of my original post was corrupted. I've corrected it.