Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Aug 1997 09:48:33 +0200 (SAT)
From:      Gordon Greeff <gordon@iafrica.com>
To:        Robert Chalmers <robert@chalmers.com.au>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Stripping ^M from llines?
Message-ID:  <Pine.BSF.3.95q.970831094346.4636G-100000@hole.iafrica.com>
In-Reply-To: <34076F58.B5DBAC3F@chalmers.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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 ]




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970831094346.4636G-100000>