hi
i think this could be a bug - could because the man-page doesn't say much
about if excluding is done before including, but have a look at this
address@hidden:# du -ksc --exclude=original* *
4 archfoto.sh
5048 _backup
826156 big
76 copyright
196976 cover
136 cover.log
4 cover.pl
388 db
4 db.sql
4 delete.log
108840 dia
540 dia.log
4 dia.pl
1924 images.lst
8 images.pl
124 missing_images
10192 new
0 nohup.out
6897356 original
180 repair
95600 small
369548 standard
4 test
4 db.sql
4 delete.log
108840 dia
540 dia.log
4 dia.pl
1924 images.lst
8 images.pl
124 missing_images
10192 new
0 nohup.out
6897356 original
180 repair
95600 small
369548 standard
4 test
16 update.sql
20 updateX.sql
8513152 insgesamt
address@hidden:# du --exclude=original
5048 ./_backup
4 ./big/tocreate
826156 ./big
12 ./copyright/2376
16 ./copyright/4505
16 ./copyright/6044
16 ./copyright/6267
12 ./copyright/6490
76 ./copyright
80 ./cover/tocreate
196976 ./cover
232 ./dia/tocreate
108840 ./dia
10192 ./new
164 ./repair/broken_img
180 ./repair
76 ./small/tocreate
95600 ./small
4 ./standard/tocreate
369548 ./standard
1615804 .
address@hidden:#
'du --exclude=original'
produces the right output (in my opinion) - it excludes the original
directory from the grand-total, so the sum is 1615804
if i do the 'same' with
'du -ksc --exclude=original* *'
the subdirectory(-ies) original is counted, which leads to a sum of 8513152
(it seems that original is excluded first, but '*' includes the directories
[original + subdirs] again)
hmm
or, am i the bug?
thx
karl.