Hi guys!
Thanks a lot for your suggestions!!
"DWT" == David W Tamkin <dattier(_at_)ripco(_dot_)com> writes:
DWT> Ralph,
DWT> | | tr \\202\\210\\211\\213\\221\\222\\223\\224\\225\\226\\230\\233
',^%<\\\'\\\'\"\"·-~>'
DWT> Maybe it's a matter of the quoting. You can't escape apostrophes between
DWT> apostrophes, but you can escape quotation marks between quotation marks.
DWT> This might sit better with tr:
DWT> | tr "\202\210\211\213\221\222\223\224\225\226\230\233" ",^%<\'\'\"\"·-~>"
DWT> or perhaps the apostrophes between [unescaped] quotation marks shouldn't be
DWT> escaped either?
DWT> | tr "\202\210\211\213\221\222\223\224\225\226\230\233" ",^%<''\"\"·-~>"
DWT> or you might need to escape the hyphen in the replacement string so that tr
DWT> won't take it to indicate a range. In fact, I think that's probably the
DWT> problem, since the error message is "Range: endpoints out of order." Try
DWT> \55 instead of a hyphen.
First off, the \55 or even \055 did not work between procmail and tr.
What did work, is:
| /usr/ucb/tr \\202\\210\\211\\213\\221\\222\\223\\224\\225\\226\\230\\233
",^%<\`'\"\"·-~>"
"SR" == Stan Ryckman <stanr(_at_)sunspot(_dot_)tiac(_dot_)net> writes:
SR> At 01:13 PM 9/8/00 +0200, Ralph SOBEK wrote:
SR> [snip]
Unfortunately, I am having a problem of arguments with tr. It
complains "tr: Range endpoints out of order."
SR> [snip]
| tr \\202\\210\\211\\213\\221\\222\\223\\224\\225\\226\\230\\233
',^%<\\\'\\\'\"\"·-~>'
SR> My guess is that the "-" in the second argument is your problem, in that
it's
SR> being taken as a range (such as the commonly-seen "a-z").
SR> Try leaving out the "-" conversion; if that works for the other characters,
then see
SR> if you can put "-" first. (I seem to remember that the cleverness of tr
depends
SR> on the version of UNIX in use.)
Possibly dependant on the version of Unix. Whereas /usr/ucb/tr works
with the above arguments, /usr/bin/tr gives the range error for those
arguments. Even with the hyphen escaprd! This is under Sun Solaris.
If anybody sees why this is still broken with /usr/bin/tr, I would be
interested.
Thanks again,
--Ralph
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail