From owner-freebsd-questions Mon Feb 15 17:48:08 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA10272 for freebsd-questions-outgoing; Mon, 15 Feb 1999 17:48:08 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from java.dpcsys.com (java.dpcsys.com [206.16.184.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA10261 for ; Mon, 15 Feb 1999 17:48:06 -0800 (PST) (envelope-from dan@dpcsys.com) Received: from localhost (dan@localhost) by java.dpcsys.com (8.9.1a/8.9.1) with SMTP id RAA21240; Mon, 15 Feb 1999 17:47:56 -0800 (PST) Date: Mon, 15 Feb 1999 17:47:56 -0800 (PST) From: Dan Busarow To: Sue Blake cc: freebsd-questions@FreeBSD.ORG Subject: Re: cleaning a text file In-Reply-To: <19990216103740.60271@welearn.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 16 Feb 1999, Sue Blake wrote: > On Tue, Feb 16, 1999 at 09:52:32AM +1030, Greg Lehey wrote: > > On Monday, 15 February 1999 at 1:10:36 -0800, rick hamell wrote: > > > > > >> Also, this file has some very long lines which would get truncated > > >> or unexpectedly wrapped when sent as email. And if there is something > > >> strange, I have to read it and guess what it should have been. > > >> > > >> Maybe someone will come up with something for this particular case. > > >> I can't believe there's not some little untility for this that's been > > >> hanging around unloved for years. > > > > > > Oy! Ok... how does Greg reformat all those emails? > > > > With Emacs. I have a collection of macros which I'm constantly > > changing to catch up with new tricks that mailers discover. > > > > To Sue's original question: it depends on what your text looks like. > > tr(1) will remove characters if you ask it to. > > If I knew which characters were there (so I could ask tr to remove > them) I would have already removed them with my text editor. > > > fmt(1) might be useful for wrapping lines. > > I don't see the long line lengths as a big problem at this stage, but > fmt might be useful later. > > The problem is that I don't know which funny characters exist in the > file, if any. I want to find out what they are, so I can search for > them and eyeball them before killing them. Run the file through vis and then search the output for \'s Dan -- Dan Busarow 949 443 4172 Dana Point Communications, Inc. dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message