Getting file sizes

Kent Johnson kent37 at tds.net
Mon Oct 22 09:11:53 EDT 2007


Newbie question:

How can I get the total size, in K, of all files in a directory that 
match a pattern?

For example, I have a dir with ~5000 files, I would like to know the 
total size of the ~1000 files matching *.txt.

On RHEL and bash, if it matters...
Thanks,
Kent


More information about the gnhlug-discuss mailing list