Control M ????
Andrea 'Fyre Wyzard' Bocci
fwyzard@inwind.it
Tue Feb 12 16:31:00 GMT 2002
At 21.08 12/02/2002 (GMT +0000), Josh Perlmutter wrote:
>for some reason my last reply got screwed up and didn't go tot he list.
>
>for those interested, there's a little perl script i have that fixes this
>problem.
>http://comp20.eecs.tufts.edu/jperlmut/
>"clean.pl"
>
>dl the instructions too. it's all there. that is from the cross enrollment
>course i took. i'm suprised they haven't taken it down.
>
>
>anyway, a lot of students at deis write progs one their windows boxes and
>the ftp them to their cs account. one of my friends wrote the script to
>get rid of those pesky ^M characters without doing the manual work.
>
>-Josh
If you have textutils installed, you can simply do
tr -d "\r" < input_file > output_file
This removes all the occurrences of ^M in the input file.
Alternativley,
tr "\r" " " < input_file > output_file
substitues all the ^M with spaces.
fwyzard
More information about the Gcc-help
mailing list