Date: Fri, 16 Jan 2004 19:14:00 +1100 From: Gautam Gopalakrishnan <ggop@madras.dyndns.org> To: Evan Sayer <esayer1@san.rr.com> Cc: freebsd-questions@freebsd.org Subject: Re: your mail Message-ID: <20040116081400.GA2693@madras.dyndns.org> In-Reply-To: <29AAE3F4-47D1-11D8-946B-000A95CCF8C4@san.rr.com> References: <29AAE3F4-47D1-11D8-946B-000A95CCF8C4@san.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040116081400.GA2693>