Lars, Danny, On Friday 21 January 2005 11:11, Lars Haugseth wrote:
On Friday 21 January 2005 18:49, Danny Sauer wrote:
Oh, wait, looking closer... It appears that xargs builds a commandline up until the maximum length on a system, and then runs that.
That is correct.
...
The -exec method is more flexible, though, and will work with programs that only accept one file as an arg, etc. I guess it's just a matter of choosing the right tool for the job, and sinc -exec always works, I tend to go that way. It's easier to remember one thing than 2. :)
You can also use 'xargs -n 1' to execute the command with a single argument at a time.
Which of course extends to situations where the source of arguments is not the file system and hence "find" is not useful.
-- Lars Haugseth
Randall Schulz