13 Mar
2007
13 Mar
'07
09:46
Hi,
Just playing around a bit with different colors in shell scripts, I've come across a problem colorings an output parsed through xargs.
I'm sure it's just a question of escaping the string correctly.
/echo -e '\E32mTest' / echo -e '\E[32mTest' Prints the word Test in green.
While echo Test > test.txt /cat test.txt | xargs -i echo -e '\E32m{}' / cat test.txt | xargs -i echo -e '\E[32m{}' prints \E32mTest
Sylvester Lykkehus wrote: prints \E[32mTest
Any ideas ?
/Sylvester -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org