Re: [Hampshire] Executing a command on a list of files?

Top Page

Reply to this message
Author: Andy Random
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Executing a command on a list of files?

Hmmm, on further investigation...

On Thu, 22 Feb 2007, Andy Random wrote:

> unfortunately when I tried the xargs solution I found that the version of
> xargs installed on the machine doesn't like the -I option.
>
> Both the machines I've tried it on (one FC one Debian) are using
> GNU xargs version 4.1.20, any idea which version I need to support -I?


While using -I just gives

xargs: invalid option -- I

using --replace, as in:

cat test.list | xargs -t --replace='{}' echo "head '{}'"

seems to work just fine.


Andy