From owner-freebsd-questions Sun Aug 31 00:50:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA26998 for questions-outgoing; Sun, 31 Aug 1997 00:50:47 -0700 (PDT) Received: from hole.iafrica.com (root@hole.iafrica.com [196.31.1.191]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA26993 for ; Sun, 31 Aug 1997 00:50:25 -0700 (PDT) Received: from localhost (gordon@localhost [127.0.0.1]) by hole.iafrica.com (8.8.5/8.8.5) with SMTP id JAA05344; Sun, 31 Aug 1997 09:48:33 +0200 (SAT) Date: Sun, 31 Aug 1997 09:48:33 +0200 (SAT) From: Gordon Greeff Reply-To: gordon@iafrica.com 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 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? There is a really easy way of doing it: load the file up in pico hit enter once ( to add a line ) save and quit fire it up in vi, and voila. [ Gordon Greeff ] [ Network Operations ] [ UUNET Internet Africa ] [ http://gordon.iafrica.com ]