JMV wrote:
> Is there a # of files limit?
>
> du -sX userimages/2519/dsp_*
>
> generates
> -bash: /usr/bin/du: Argument list too long
> When there are a few hundred files that match
Probably more than a few hundred. Look for "Argument list too long"
from the following document.
http://www.gnu.org/software/coreutils/faq/
However I think you are using du incorrectly. The -X option is
expecting a single argument that is a file containing patterns to
exclude. You are handing it many because the command line shell will
expand the "file glob" dsp_* into many different arguments.
-X FILE, --exclude-from=FILE Exclude files that match any pattern in FILE.
Try this instead:
--exclude=PATTERN Exclude files that match PATTERN.
du -s --exclude="userimages/2519/dsp_*"
Bob