Re: Copy a file one hundred times
On Sun, Dec 21, 2008 at 04:45:21PM -0600, Ron Johnson wrote:
> On 12/21/08 15:58, Jörg-Volker Peetz wrote:
>> $ seq -w 1 1 10 | xargs -i -n1 cp file.jpg file{}.jpg
>
> What's with the {}? An implied variable?
$ LANG=C man xargs | grep -C 2 '{}'
-i[replace-str]
This option is a synonym for -Ireplace-str if replace-str is
specified, and for -I{} otherwise. This option is deprecated;
use -I instead.
--
example:
somecommand | xargs -s 50000 echo | xargs -I '{}' -s 100000 rm '{}'
Here, the first invocation of xargs has no input line length limit be-
--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend
Reply to: