[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: du
From: |
Bob Proulx |
Subject: |
Re: du |
Date: |
Sun, 27 Feb 2005 12:01:34 -0700 |
User-agent: |
Mutt/1.5.6+20040907i |
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
- du, JMV, 2005/02/27
- Re: du, Paul Eggert, 2005/02/27
- Re: du,
Bob Proulx <=