From owner-freebsd-questions@FreeBSD.ORG Mon Dec 1 13:52:14 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 4579B16A4CF for ; Mon, 1 Dec 2003 13:52:14 -0800 (PST) Received: from fed1mtao08.cox.net (fed1mtao08.cox.net [68.6.19.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16D6143FA3 for ; Mon, 1 Dec 2003 13:52:00 -0800 (PST) (envelope-from bigdaddyebk@cox.net) Received: from lilshilznit ([68.7.7.196]) by fed1mtao08.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20031201215131.TRYE9010.fed1mtao08.cox.net@lilshilznit> for ; Mon, 1 Dec 2003 16:51:31 -0500 From: "Big Daddy EBK" To: Date: Mon, 1 Dec 2003 13:51:59 -0800 Message-ID: <000001c3b855$58e06de0$1401a8c0@lilshilznit> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-Reply-To: <20031201200100.DEFC616A4E2@hub.freebsd.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal 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 21:52:14 -0000 Hello everyone, I'm very new to BSD & this mailing list so please forgive me should I post incorrectly. Here are some links that may help you with removing the ^M character from any file!! http://www.unixblog.com/quick_unix_tips/remove_m_with_vi.php - I like this one personally, because I've used it before & it worked!! http://www.introcomp.co.uk/general/remove_dos.html BigDaddyEBK "Unix" for Longevity "AS/400" for Nostalgia "Linux" for Productivity "MAC" for Multimedia "Windows" for Solitaire Hello tech support? I broke the cup-holder on my computer!! Date: Mon, 1 Dec 2003 23:10:33 +0530 From: Shantanoo Mahajan Subject: Re: Remove ^M characters from xhtml file To: Robin Schoonover Cc: freebsd-questions@freebsd.org Message-ID: <20031201174033.GA874@dhumketu.homeunix.net> Content-Type: text/plain; charset=us-ascii +++ Robin Schoonover [freebsd] [30-11-03 19:17 -0700]: | 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) col -bx < old.xhtml > new.xhtml Shantanoo