Date: Mon, 1 Sep 1997 10:09:37 +0930 From: Greg Lehey <grog@lemis.com> To: Charles Henrich <henrich@crh.cl.msu.edu> Cc: FreeBSD Questions <questions@FreeBSD.org> Subject: Re: Stripping ^M from llines? Message-ID: <19970901100937.07818@lemis.com> In-Reply-To: <199709010021.UAA12496@crh.cl.msu.edu>; from Charles Henrich on Sun, Aug 31, 1997 at 08:21:48PM -0400 References: <5ud18g$u9$1@msunews.cl.msu.edu> <199709010021.UAA12496@crh.cl.msu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 31, 1997 at 08:21:48PM -0400, Charles Henrich wrote: > In lists.freebsd.questions you write: > > >> Well, I suppose it's a matter of opinion whether that's an easy way to >> solve the problem. It requires a lot of keyboard input. Here's one >> which I would use. To compile, just: > >> $ cc stripcr.c -o stripcr > >> It's a filter: that is, you run it like this: > >> $ stripcr <infile >outfile > >> The reason for this isn't laziness: that way, you can pipe things into >> it. > > Even easier: sed 's/^M//' <file1 >file2 Touché. For some reason that evaded my mind. Must be too early in the morning. Greg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970901100937.07818>