Script troubles.
David Kramer
david at thekramers.net
Thu Apr 5 23:16:11 EDT 2001
On Fri, 6 Apr 2001, Chris Janicki wrote:
> How about some negative matching, like:
>
> s/[^\t-~]//g
>
> Replace anything that's not between a tab (ASCII #9) and a tilde (ASCII
> #126). Disclaimer: I don't know sed... maybe you have to escape the
> brackets?
>
> There's probably also some nomenclature for specifying an ASCII character
> code, but I couldn't find it in my references. Maybe consult the man
> page for advanced regular expressions?
I think it's \142
Also look at the man page for tr. tr is for translating characters.
-------------------------------------------------------------------
DDDD David Kramer http://thekramers.net
DK KD
DKK D "All my life, I always wanted to be somebody.
DK KD Now I see that I should have been more specific."
DDDD - Lily Tomlin
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list