Subject: Re: New xargs, was Re: upgrade to mv
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Frederick Bruckman <>
List: tech-userlevel
Date: 08/16/2001 10:28:57
On Thu, 16 Aug 2001, Frederick Bruckman wrote:

> 	commands | xargs -n1 sh -c 'command $2 arg arg'

As a matter of fact, the argument numbering has to start with "$0" for
some reason that's a complete mystery to me...

fredb@tautology-> echo foo bar | xargs -n2 sh -x -c 'echo $0 BLAH $1 BLAH'
+ echo foo BLAH bar BLAH
foo BLAH bar BLAH