Gordon Messmer wrote:
Todd Zullinger wrote:
> I think something similar with xargs would work too:
>
> find -name '*.mpc' -print0 | \
> xargs -0 -i mppdec "{}" "`echo {} | sed s/.mpc/.wav`"
>
No, because the section in backticks would be executed by the shell,
before xargs.
xargs can't be used to run anything with shell substitution. It
doesn't call system().
Thanks for clarifying Gordon. I wasn't positive it would work. I
tend to use for | while more often when I need to do something
individually for each line/file/arg.
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL:
www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The most useful piece of learning for the uses of life is to unlearn
what is untrue.
-- Antisthenes