From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 18:17:59 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 3F7E416A4CE for ; Sun, 30 Nov 2003 18:17:59 -0800 (PST) Received: from endif.cjb.net (65-101-229-205.dnvr.qwest.net [65.101.229.205]) by mx1.FreeBSD.org (Postfix) with SMTP id C272B43F3F for ; Sun, 30 Nov 2003 18:17:54 -0800 (PST) (envelope-from end@endif.cjb.net) Received: (qmail 26570 invoked from network); 1 Dec 2003 02:17:48 -0000 Received: from localhost (127.0.0.1) by localhost with SMTP; 1 Dec 2003 02:17:48 -0000 Date: Sun, 30 Nov 2003 19:17:46 -0700 From: Robin Schoonover To: Bryan Cassidy Message-Id: <20031130191746.09011caf.end@endif.cjb.net> In-Reply-To: <20031201031602.GA80581@bsdjunky.homeunix.org> References: <20031201031602.GA80581@bsdjunky.homeunix.org> X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org 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: Mon, 01 Dec 2003 02:17:59 -0000 X-List-Received-Date: Mon, 01 Dec 2003 02:17:59 -0000 On Sun, 30 Nov 2003 21:16:02 -0600, Bryan Cassidy wrote: > 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? dos2unix (converters/unix2dos in ports) is an easy route (dos2unix name). Also you can use the tr command (tr -d '\r' < name > newname). -- Robin Schoonover (aka End) # # You hear the moon howling at you. # -- NetHack