Guest_imported
New member
- Jan 1, 1970
- 0
I am trying to get the total size of list of files in a directory.
We are trying to get the growth rate of a directory in terms of size. Specifically <Wild> Charactered files.
I use du -sk to find the size. But I am a bit confused about, how to get the total size of files like say COM_ABC_?_20010101.* in a directory.
Files in a directory
COM_ABC_1_20010101.txt
COM_ABC_2_20010101.txt
COM_ABC_3_20010101.txt
COM_ABC_4_20010101.txt
COM_ABC_5_20010101.txt
COM_123_1_20010101.txt
COM_XYZ_1_20010101.lst
...
I want the total size of the COM_ABC_?_20010101.* files from the current directory.
I have written a shell to do this, but the total is incremental.
Is there any ready-to-use script for this ?
Thanks in advance.
UKID
We are trying to get the growth rate of a directory in terms of size. Specifically <Wild> Charactered files.
I use du -sk to find the size. But I am a bit confused about, how to get the total size of files like say COM_ABC_?_20010101.* in a directory.
Files in a directory
COM_ABC_1_20010101.txt
COM_ABC_2_20010101.txt
COM_ABC_3_20010101.txt
COM_ABC_4_20010101.txt
COM_ABC_5_20010101.txt
COM_123_1_20010101.txt
COM_XYZ_1_20010101.lst
...
I want the total size of the COM_ABC_?_20010101.* files from the current directory.
I have written a shell to do this, but the total is incremental.
Is there any ready-to-use script for this ?
Thanks in advance.
UKID