Hi All,
I've got a ton of files in a particular directory. I want to find pdf files older than 30 days in that directory and then the cumulative size of those files.
Ex:
find /home/jk/a -name "*.pdf" -mtime +30
consider it finds the below 4 files.
/home/jk/a/1.pdf
/home/jk/a/2.pdf
/home/jk/a/3.pdf
/home/jk/a/4.pdf
now I want to know the total size of these 4 files. Any help would be appreciated.