[Linux-disciples] Large argument lists
Stephen R Laniel
steve at laniels.org
Fri Jul 21 12:14:09 EDT 2006
If you try to do something like 'rm dirName/*' when dirName
contains lots of files, you'll get an error like
'/usr/bin/rm: Argument list too long'. So then you'll need
to do something like
find dirName -mindepth 1 -depth -print0 |xargs -0i rm -R '{}'
If you're writing a script that has to process lots of
directories with many files, you end up having to do this
with every command.
Is there some prepackaged set of scripts that replaces bash
commands with versions like the above that work with large
collections? Or do we just need to write these on our own?
--
Stephen R. Laniel
steve at laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060721/343dd7d3/attachment.pgp
More information about the Linux-disciples
mailing list