Getting file sizes
Jim Kuzdrall
gnhlug at intrel.com
Mon Oct 22 09:29:52 EDT 2007
On Monday 22 October 2007 09:11, Kent Johnson wrote:
> 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.
Ah! Perhaps I actually know an answer to this one. (Very rare)
Go to directory of interest and try
du -shc *.txt
Jim Kuzdrall
More information about the gnhlug-discuss
mailing list