From owner-freebsd-questions@FreeBSD.ORG Tue Dec 2 14:53:51 2003 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 3CBA316A4CE for ; Tue, 2 Dec 2003 14:53:51 -0800 (PST) Received: from speedy.insekure.com (gotroot.insekure.com [207.254.222.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E090743F85 for ; Tue, 2 Dec 2003 14:53:49 -0800 (PST) (envelope-from james@JamesSchmidt.Com) Received: from localhost (james@localhost.insekure.com [127.0.0.1]) by speedy.insekure.com (8.12.10/8.12.6) with ESMTP id hB2Mw6hJ038394 for ; Tue, 2 Dec 2003 16:58:06 -0600 (CST) (envelope-from james@JamesSchmidt.Com) Date: Tue, 2 Dec 2003 16:58:06 -0600 (CST) From: James Schmidt X-X-Sender: james@speedy.insekure.com Cc: freebsd-questions@freebsd.org In-Reply-To: <20031202225359.GA1125@moo.holy.cow> Message-ID: <20031202165558.P38364@speedy.insekure.com> References: <20031201031602.GA80581@bsdjunky.homeunix.org> <20031202225359.GA1125@moo.holy.cow> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: Remove ^M characters from xhtml file 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: Tue, 02 Dec 2003 22:53:51 -0000 Using Vi, use this command :1,$ s///g HTH James On Tue, 2 Dec 2003, parv wrote: > in message <20031201031602.GA80581@bsdjunky.homeunix.org>, > wrote Bryan Cassidy thusly... > > > > I've downloaded a couple of .xhtml files and they have ^M characters > > all through it. I tried the col -b < name > newname command on these > > files but when I do that it erases the whole document. Any ideas? > > Ah, a FAQ of comp.unix.* groups... > > http://groups.google.com/groups?q=remove+%22%5EM%22+file+group%3Acomp.unix.* > > > It pains me not to see even a mention of sed, even though i prefer the > "perl pie" solution myself. To rectify the situation... > > # one way to type ^M is: Ctrl-V followed by Ctrl-M > sed -e 's/^M$//' old > new && mv -f new old > > > - Parv > > -- > > _______________________________________________ > 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" >