[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] xargs w/ tr
- Subject: [ale] xargs w/ tr
- From: dsj at sylvester.dsj.net (David S. Jackson)
- Date: Fri, 3 Jan 2003 16:48:21 -0500
On Fri, Jan 03, 2003 at 04:22:16PM -0500 Bob <rstickel at bellsouth.net> wrote:
> Apparently, the `echo ...` is evaluated before xargs does the %
> substitution. So the % gets translated to % (a no-op) and the mv call
> becomes:
>
> mv % %
I'll bet you're right.
When I get a moment, I'll see if I can come up with a workaround...
Like using xargs to set variable names, something like
whatever|xargs -J % name=% newname=`echo $name|tr A-Z a-z`
or some such...
--
David S. Jackson dsj at dsj.net
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
I had no shoes and I pitied myself. Then I met a
man who had no feet, so I took his shoes.
-- Dave Barry
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale