On Mon, Dec 17, 2001 at 12:25:37PM +0100, David D wrote: > I m not an expert of nix command but : > > What the purpose of xargs, it redistribute the output of the command before > | to the commande after ? Exactly.
It could probably also be done by this one:
$ cvs add $(find . -type d; find . -type f)
or
$ cvs add $(find . -print)
- if find prints the directories before the files in them. I think it
does.
Both of the above will run into problems if there are "too many" files.
Then the shell will complain about the maximum command line length.
xargs will chop it up to avoid that.
--
PGP signed and encrypted | .''`. |** Debian GNU/Linux **
messages preferred. | : :' : | By professionals,
www.karl.jorgensen.com | \. `' | for professionals
| `- | http://www.debian.org/
msg15568/pgp00000.pgp
Description: PGP signature
