Date: Fri, 16 Jan 2004 12:26:52 +0900 From: Till Plewe <till@plewe.is.tsukuba.ac.jp> To: Evan Sayer <esayer1@san.rr.com> Cc: freebsd-questions@freebsd.org Subject: Re: your mail Message-ID: <20040116032652.GA41221@plewe.is.tsukuba.ac.jp> 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. > Unless you have a back up your file is lost. If you type: command FILE1a ... FILE1z > FILE2 in your shell, then the shell does the following: 1) it creates an empty file with name FILE2. If there is already a file with this name it will be !ERASED! 2) it executes the command using FILES1a-FILE1z as arguments 3) writes the result into FILE2. In your case the shell erased your file "index.html" before it could use it as an argument to the sed command. Sorry. - Till
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040116032652.GA41221>