[ale] xargs w/ tr
Dow Hurst
dhurst at kennesaw.edu
Fri Jan 3 15:38:20 EST 2003
You could run xargs with the -p, or interactive option, to see what it
has interpreted the command line to actually be. Might help.
Dow
David S. Jackson wrote:
>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...).
>
>
>
--
__________________________________________________________
Dow Hurst Office: 770-499-3428
Systems Support Specialist Fax: 770-423-6744
1000 Chastain Rd., Bldg. 12
Chemistry Department SC428 Email:dhurst at kennesaw.edu
Kennesaw State University Dow.Hurst at mindspring.com
Kennesaw, GA 30144
*********************************
*Computational Chemistry is fun!*
*********************************
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list