From owner-freebsd-questions@FreeBSD.ORG Fri Jan 16 05:45:38 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7E2716A4CE for ; Fri, 16 Jan 2004 05:45:38 -0800 (PST) Received: from sccmmhc02.asp.att.net (sccmmhc02.asp.att.net [204.127.203.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id E47A143D68 for ; Fri, 16 Jan 2004 05:45:35 -0800 (PST) (envelope-from david.fleck@mchsi.com) Received: from grond (12-216-14-105.client.mchsi.com[12.216.14.105]) by sccmmhc02.asp.att.net (sccmmhc02) with SMTP id <20040116134534mm2009rmoge>; Fri, 16 Jan 2004 13:45:35 +0000 Date: Fri, 16 Jan 2004 07:45:34 -0600 (CST) From: David Fleck Sender: dcf@grond.sourballs.org To: Evan Sayer In-Reply-To: <29AAE3F4-47D1-11D8-946B-000A95CCF8C4@san.rr.com> Message-ID: <20040116073526.P602@grond.sourballs.org> References: <29AAE3F4-47D1-11D8-946B-000A95CCF8C4@san.rr.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: your mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2004 13:45:39 -0000 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