From owner-freebsd-questions@FreeBSD.ORG Fri Jan 16 08:16:41 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 BB43716A4CE for ; Fri, 16 Jan 2004 08:16:41 -0800 (PST) Received: from ns1.tiadon.com (SMTP.tiadon.com [69.27.132.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 837F843D53 for ; Fri, 16 Jan 2004 08:16:39 -0800 (PST) (envelope-from kdk@daleco.biz) Received: from daleco.biz ([69.27.131.0]) by ns1.tiadon.com with Microsoft SMTPSVC(6.0.3790.0); Fri, 16 Jan 2004 10:20:01 -0600 Message-ID: <40080E27.2090409@daleco.biz> Date: Fri, 16 Jan 2004 10:15:35 -0600 From: "Kevin D. Kinsey, DaleCo, S.P." User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031124 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jerry McAllister References: <200401161525.i0GFPYK26443@clunix.cl.msu.edu> In-Reply-To: <200401161525.i0GFPYK26443@clunix.cl.msu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 Jan 2004 16:20:01.0984 (UTC) FILETIME=[97DAF400:01C3DC4C] cc: freebsd-questions@freebsd.org cc: Evan Sayer Subject: Re: Remove CRs 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 16:16:41 -0000 Jerry McAllister 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. >> >> > > > OP, you've gotten all good advice---probably the best is the "you do have backups, don't you?". As you learned the hard way, sed(1) stands for "stream editor"; and it's impossible to make the river flow in a circle. Too bad.... I'd probably check my original advice again, and then complain if this wasn't noted. We certainly don't need folks posting bogus info in the Internet ;-) I've a note in $HOME in ALL CAPS reminding me of this sed, I mean sad, fact after a similar mistake some time back. Someone recomended dosunix (from ports) which is fine; please be aware of the fact that the same quid pro quo applies: $dosunix foobar foobar will still give you an empty file. Kevin Kinsey