From owner-freebsd-questions@FreeBSD.ORG Fri Jan 16 07:25:40 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 7919816A4CE for ; Fri, 16 Jan 2004 07:25:40 -0800 (PST) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BE8D43D5D for ; Fri, 16 Jan 2004 07:25:38 -0800 (PST) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i0GFPYK26443; Fri, 16 Jan 2004 10:25:34 -0500 (EST) From: Jerry McAllister Message-Id: <200401161525.i0GFPYK26443@clunix.cl.msu.edu> To: esayer1@san.rr.com (Evan Sayer) Date: Fri, 16 Jan 2004 10:25:33 -0500 (EST) In-Reply-To: <29AAE3F4-47D1-11D8-946B-000A95CCF8C4@san.rr.com> from "Evan Sayer" at Jan 15, 2004 07:07:48 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org 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 15:25:40 -0000 > > 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" >