2 deleted 7 characters in body
source | link

I found no way to make du report just the total of a set of files, without the files itself.

You can use tail to cut the last line (the total) from the output of du:

du -c *.sql | tail -n 1

There seems to be no way to make du itself report just the total of a set of files.

I found no way to make du report just the total of a set of files, without the files itself.

You can use tail to cut the last line (the total) from the output of du:

du -c *.sql | tail -n 1

You can use tail to cut the last line (the total) from the output of du:

du -c *.sql | tail -n 1

There seems to be no way to make du itself report just the total of a set of files.

1
source | link

I found no way to make du report just the total of a set of files, without the files itself.

You can use tail to cut the last line (the total) from the output of du:

du -c *.sql | tail -n 1