From owner-freebsd-questions Sun Aug 31 17:22:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA25563 for questions-outgoing; Sun, 31 Aug 1997 17:22:17 -0700 (PDT) Received: from crh.cl.msu.edu (crh.cl.msu.edu [35.8.1.24]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA25555 for ; Sun, 31 Aug 1997 17:22:12 -0700 (PDT) Received: (from henrich@localhost) by crh.cl.msu.edu (8.8.5/8.8.5) id UAA12496; Sun, 31 Aug 1997 20:21:48 -0400 (EDT) Date: Sun, 31 Aug 1997 20:21:48 -0400 (EDT) From: Charles Henrich Message-Id: <199709010021.UAA12496@crh.cl.msu.edu> To: grog@lemis.com, freebsd-questions@freebsd.org Subject: Re: Stripping ^M from llines? Newsgroups: lists.freebsd.questions References: <5ud18g$u9$1@msunews.cl.msu.edu> X-Newsreader: NN version 6.5.0 CURRENT #1 Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 outfile >The reason for this isn't laziness: that way, you can pipe things into >it. Even easier: sed 's/^M//' file2 -Crh -- Charles Henrich Michigan State University henrich@msu.edu http://pilot.msu.edu/~henrich