[Ilugc] XArgs
- From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
- Date: Sat Jun 7 06:41:47 2008
On 05:54:39 Jun 07, Masatran, R. Deepak wrote:
Aren't
xargs foo
and
xargs -i foo {}
supposed to be identical? Why do they act different?
Because xargs(1) is a weird command to use.
But then I don't think there is an alternative.
The usage semantics always confuse me.
For instance, compare:
ls / | xargs ls -d
and
ls / | xargs -i ls -d {}
I can scarcely remember it. But it is far easier than using the find
builtin mechanisms to achieve the same end.
I think you are missing some switch of xargs.
-Girish
Other related posts: