On Thu, Jul 04, 2002 at 10:15:58AM +0800, Juan Paolo Carballo wrote: > I'll make pahabol... > Perl can do that without redirection, and you get a .bak of your file > too. > > perl -pi.bak -e 's/\r\n/\n/' yourfile
There's More Than One Way To Do It perl -pi -e 's/\cM//' yourfile # without backup perl -pi -e 's/\015//' yourfile perl -pi -e 's/\x0d//' yourfile vim "+set fileformat=dos" "+wq" yourfile HTH -- $_=q:; # SHERWIN # 70;72;69;6e;74;20; 27;4a;75;73;74;20; 61;6e;6f;74;68;65; 72;20;50;65;72;6c; 20;6e;6f;76;69;63; 65;27;:;;s=~?(..); ?=pack q$C$,hex$1; ;;;=egg;;;;eval;;; _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
