[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recursive add

From: Karl E. Jorgensen
Subject: Re: recursive add
Date: Mon, 17 Dec 2001 22:25:40 +0000
User-agent: Mutt/1.3.22i

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 ?

It could probably also be done by this one:

$ cvs add $(find . -type d; find . -type f)
$ cvs add $(find . -print)
- if find prints the directories before the files in them. I think it

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,    |     \. `'           |    for professionals
                               |       `-            |

Attachment: pgpAZ2bloBOAR.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]