OS: Fedora; Tested in Bash v.5.1.
Hello. Task: Printing total size of files alone.
To reproduce:
$ stat -c '%i %h %s %n %F' k l
4198568 2 34 k regular file
4198568 2 34 l regular file
$ find . -type f
./k
./l
ThoseĀ 'du' commands cover only one file instead of all files.
$ find . -type f -exec du -acb {} +
34 ./k
34 total
$ find . -type f -print0 | du --files0-from=- -cb
34 ./k
34 total
Isn't rather 68 expected?