Date: Sun, 31 Aug 1997 20:21:48 -0400 (EDT) From: Charles Henrich <henrich@crh.cl.msu.edu> To: grog@lemis.com, freebsd-questions@freebsd.org Subject: Re: Stripping ^M from llines? Message-ID: <199709010021.UAA12496@crh.cl.msu.edu> References: <5ud18g$u9$1@msunews.cl.msu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
-Crh
--
Charles Henrich Michigan State University henrich@msu.edu
http://pilot.msu.edu/~henrich
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709010021.UAA12496>
