Search and Size
I am trying to search for files and give me the total size for the files found. This is what I have tried and what I have gotten.
find *.jpg /var/www/html/albums/ | grep du -ac
find: *.jpg: No such file or directory
if I run just the find command as such, find *.jpg /var/www/html/albums/, i get all the pictures just find.
I also tried this...
[root@Sun root]# du -c /var/www/html/albums/*.jpg
du: `/var/www/html/albums/*.jpg': No such file or directory
It doesn't like the *jpg. I believe this is cause it's only looking in the albums dir, and the pictures are are in dirs under that.