[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] xargs w/ tr
- Subject: [ale] xargs w/ tr
- From: dhurst at kennesaw.edu (Dow Hurst)
- Date: Fri, 03 Jan 2003 15:38:20 -0500
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