find . -maxdepth 1 -name "some_name.php*" -exec du -bk {} \; | awk '{ total = total + $1 } END { print total }'
-bash: /usr/bin/du: Argument list too long
Leave a reply
find . -maxdepth 1 -name "some_name.php*" -exec du -bk {} \; | awk '{ total = total + $1 } END { print total }'