Date: Fri, 16 Jan 2004 07:45:34 -0600 (CST) From: David Fleck <david.fleck@mchsi.com> To: Evan Sayer <esayer1@san.rr.com> Cc: freebsd-questions@freebsd.org Subject: Re: your mail Message-ID: <20040116073526.P602@grond.sourballs.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, 15 Jan 2004, 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. NEVER NEVER NEVER do 'sed 'foob' myfile > myfile'. ALWAYS redirect sed output to a temp file, then mv the temp file to the original file. As someone else mentioned, your file is probably gone. It *may* be possible to recover the data, or it may not. Here is a link that might be useful in giving examples of recovering lost data on UNIX systems: http://www.samag.com/documents/s=1441/sam0111b/0111b.htm Your ability to recover the data will depend on a combination of luck and amount of disk activity since the overwrite. I don't know enough about the internals of FreeBSD to know if there are any tools for lost file recovery. -- David Fleck david.fleck@mchsi.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040116073526.P602>