Brian N. Smith wrote: > When save to a file, I have a bunch of "^M" characters .. I wrote a little > strip to try to get rid of them, but of course, I tried the ^M instead of > whatever I should have had done ... any help? > > #!/usr/bin/perl > > open (myFile, "<in_file"); > open (myOut, ">out_file"); > while (<myFile>) > { > s/^M/ /g; > print myOut $_; > } > close myFile; > close myOut;
this simple command line script that will fix this: perl -pi -e 's/\r/\n/g' filename.ext -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]