Posted By

hacker on 09/22/09


Tagged

unix dos perl linefeed


Versions (?)

convert unix 2 dos (oneliner)


 / Published in: Perl
 

  1. perl -p -i -e 's/\r//g; s/\n/
  2. /g' foo.txt

Report this snippet  

You need to login to post a comment.