The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 11-20-2007
edcrosbys edcrosbys is offline
Read Only
  
 

Join Date: Jul 2007
Posts: 15
Just to pass on snippets, here's what I use:

perl -pe 's/\015\012/\n/g' - dos to unix -- just pipe through it
perl -pe 's/\n/\015\012/g' - unix to dos -- just pipe through it

cat filename |perl -pe 's/\015\012/\n/g' > filename.without.ctrl.m

dos2unix works well, but isn't on all systems. I now use this perl.