From owner-freebsd-questions Fri Nov 2 15:45: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by hub.freebsd.org (Postfix) with SMTP id BC1E737B40C for ; Fri, 2 Nov 2001 15:44:58 -0800 (PST) Received: (qmail 8893 invoked by uid 0); 2 Nov 2001 23:44:57 -0000 Received: from tk212017108240.univie.teleweb.at (HELO Deadcell.ANT) (212.17.108.240) by mail.gmx.net (mp002-rz3) with SMTP; 2 Nov 2001 23:44:57 -0000 Received: (from ant@localhost) by Deadcell.ANT (8.11.5/8.11.5) id fA2NitX01505; Sat, 3 Nov 2001 00:44:55 +0100 (CET) (envelope-from ant) Date: Sat, 3 Nov 2001 00:44:55 +0100 From: Andreas Ntaflos To: David Loszewski Cc: freebsd-questions@freebsd.org Subject: Re: ^M on end of lines Message-ID: <20011103004455.B1274@Deadcell.ANT> Mail-Followup-To: David Loszewski , freebsd-questions@freebsd.org References: <20011102172444.L97368@happy.cow.org> <003301c163ef$c4d8ca40$3000b1d8@sickness> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <003301c163ef$c4d8ca40$3000b1d8@sickness>; from stealth215@mediaone.net on Fri, Nov 02, 2001 at 05:43:18PM -0500 Platform: FreeBSD 4.4-RELEASE Hostname: Bender.ANT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Nov 02, 2001 at 05:43:18PM -0500, David Loszewski wrote: > Yea, but then I have to do that to all the files > Not pretty when you have a 100 files > > Dave > >> a simple fix after dl is to open it up in vi and do >> :%s,^V^M,,g >> >> -r The following perl command issued on the CLI will get rid of these annoying ^Ms. # perl -e -i -p 's/\r\n/\n/s' filename you can use wildcards too. There are also ports to solve these problems, like dos2unix. regards -- Andreas "ant" Ntaflos ntaflos.andreas@gmx.net Vienna, AUSTRIA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message