jerrymc at clunix.cl.msu.edu
Fri Jan 16 07:25:40 PST 2004
> Please help, this is really important. I was told that i could get rid
> of the ^m symbols at the end of the lines in my web page's html code
> by using sed. They said to execute sed "s//^m^m" index.html >
> index.html or something like that. This got rid of everything in the
> file. I really need this back, so any help would be greatly
I always use tr(1) to do that, eg say your Microsloth file is myfile.txt
tr -d "\r" < myfile.txt > myfile
Then you have a file called 'myfile' without the extra ^M-s which are
Carriage Return (CR) characters identified with the "\r" in the command.
You can also use dos2unix if you have it installed. But tr comes
with FreeBSD by default.
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions