hi all,
in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders...
please help me, how can i find the total size of these specific files in the server...
Something like this?
# du -ks /usr/local/jboss4/bin /usr/local/jboss4/server /var/log/jboss | awk '{c+=$1} END {printf "%s KB\n", c}'
1646356 KB
Cheers
ZB
zazzy...
i will tell u in detail...
in /temp area we have some specific application files residing these get generated whenever the application executes... all these files are residing recursively in /temp area...
now i want to know how much size these files are aquiring on the server...
the file type is something like this
*._*
example:
/temp/unix_temp1._01
/temp/abc/unix_temp1._02
/temp/abc/xyz/unix_temp5.__1
/temp/abc/xyz/mno/unix_temp6.__6
/temp/def/unix_temp7._03
/temp/def/ghi/unix_temp9.__5
$ find /temp -name "*._*" -print0 | xargs -0 du -ks | awk '{c+=$1} END {printf("%s KB\n", c )}'
192 KB
Cheers
ZB