Sylvester Lykkehus wrote:
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
prints \E[32mTest
Any ideas ?
/Sylvester
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]