[ale] xargs w/ tr

David S. Jackson dsj at sylvester.dsj.net
Fri Jan 3 16:48:21 EST 2003


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






More information about the Ale mailing list