Re: Stupid Question: Striping Dos ^M From Texts
Here's a sed script that I've used for years on my old SCO Unix box. I'm
not actually positive it works on Linux because I haven't tried it, but sed
is sed, right?...
It adds ^M's if they're missing and deletes them if found. (i.e. one
script that will do both conversions)
sed -e '
' < infile > outfile
One caveat -- infile and outfile **can't** be the same.
Edmondson Roper CA
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to email@example.com .