Help with either bash or find...

Todd Zullinger tmz at pobox.com
Fri May 9 17:52:24 UTC 2008


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080509/32340639/attachment-0001.sig>


More information about the fedora-list mailing list