bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suggestion for tr / transliteration binutil


From: smu johnson
Subject: Suggestion for tr / transliteration binutil
Date: Tue, 26 Aug 2008 11:02:24 -0700

Hi,

I hope this is the right place to ask this.  I think a very handy argument
to add to the list of aliases for character classes in tr would be a new one
that behaves like [:cntrl:], except that it will not include newline
characters in that class.

The reason is at work here I deal with XML data that people send us that has
all sorts of strange characters in it, like ^@, ^Z, etc etc... and I'd like
to use tr to quickly trip all this garbage out of there without it
destroying the newline characters too...

If this suggestion is actually considered, I suppose it would be nice to
have some extra power to determine which newline to not target, in other
words, on a Unix machine, that set might include all those ^ characters, as
well as ^M to get rid of the DOS format...

Sorry for the rant-like suggestion, but is this possible?

Thanks

-- 
smu johnson <address@hidden>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]