Date: Fri, 16 Jan 2004 10:25:33 -0500 (EST) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: esayer1@san.rr.com (Evan Sayer) Cc: freebsd-questions@freebsd.org Subject: Re: Remove CRs Message-ID: <200401161525.i0GFPYK26443@clunix.cl.msu.edu> In-Reply-To: <29AAE3F4-47D1-11D8-946B-000A95CCF8C4@san.rr.com> from "Evan Sayer" at Jan 15, 2004 07:07:48 PM
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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. I always use tr(1) to do that, eg say your Microsloth file is myfile.txt do this: 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. Have fun, ////jerry > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401161525.i0GFPYK26443>