[ale] xargs w/ tr
David S. Jackson
dsj at sylvester.dsj.net
Fri Jan 3 14:33:25 EST 2003
I was just experimenting with xargs and tr and wondered why the
following didn't work as expected:
locate *.{mp3,MP3} | xargs -I % mv % `echo %|tr A-Z a-z`
What happens is the second % doesn't seem to get tr'ed. Any idea why?
I know there are lots of other ways to do this, but I'm just curious
about why tr doesn't seem to work here (or maybe it's xargs...).
--
David S. Jackson dsj at dsj.net
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Life is divided into the horrible and the miserable.
-- Woody Allen, "Annie Hall"
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list