Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Feb 1999 18:57:22 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        Sue Blake <sue@welearn.com.au>
Cc:        Greg Lehey <grog@lemis.com>, rick hamell <hamellr@dsinw.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: cleaning a text file
Message-ID:  <19990215185722.A21817@dan.emsphone.com>
In-Reply-To: <19990216103740.60271@welearn.com.au>; from "Sue Blake" on Tue Feb 16 10:37:40 GMT 1999
References:  <19990215201056.19929@welearn.com.au> <Pine.BSF.3.91.990215010943.20451F-100000@dsinw.com> <19990216095232.J2207@lemis.com> <19990216103740.60271@welearn.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Feb 16), Sue Blake said:
> 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.

How about something like 

grep "^[ -~]" file.txt

That will print any lines that have characters outside the standard
printable ascii set.  Then you can look at the oddball letters and
figure out appropriate replacement characters.

	-Dan Nelson
	dnelson@emsphone.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990215185722.A21817>