From owner-freebsd-questions Fri Aug 29 18:46:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA11349 for questions-outgoing; Fri, 29 Aug 1997 18:46:45 -0700 (PDT) Received: from buffnet4.buffnet.net (buffnet4.buffnet.net [205.246.19.13]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA11344 for ; Fri, 29 Aug 1997 18:46:40 -0700 (PDT) Received: from buffnet11.buffnet.net (shovey@buffnet11.buffnet.net [205.246.19.55]) by buffnet4.buffnet.net (8.7.5/8.7.3) with SMTP id VAA00725; Fri, 29 Aug 1997 21:45:16 -0400 (EDT) Date: Fri, 29 Aug 1997 21:44:53 -0400 (EDT) From: Steve Hovey To: Robert Chalmers cc: freebsd-questions Subject: Re: Stripping ^M from llines? In-Reply-To: <34076F58.B5DBAC3F@chalmers.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk If you ftp it ascii from the dos machine to begin with the ftp strips it I think. On Sat, 30 Aug 1997, Robert Chalmers wrote: > Hi, > Anyone got a handy program for stripping the ^M from text > lines in fbsd? > I currently use tr -d '\015', but this falls over text that > has the : chararacter in it, complaining about it being a > directory? > > cheers, > Bob > > -- > http://www.chalmers.com.au Books-New & Secondhand Support > Whirled Peas. > Agents for CIBTC. Associate of Amazon.com, and Partner Program > with iBS. > Books about China, books from China. Sheng huo jiu shi > dou zheng > Business Links in Dalian, and Beijing. Building the > China Trade > > >