your mail

Gautam Gopalakrishnan ggop at madras.dyndns.org
Fri Jan 16 00:15:57 PST 2004


On Thu, Jan 15, 2004 at 07:07:48PM -0800, Evan Sayer wrote:
> FreeBSD-
> 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 
> appreciated.

If the file with ^M in it is called file.txt, then run dos2unix on it:

dos2unix file.txt file.txt

Install the program from /usr/ports/converters/unix2dos

hope that helps
Gautam

PS: Obviously, please make backups before trying anything.


More information about the freebsd-questions mailing list