-bash: /usr/bin/du: Argument list too long


find . -maxdepth 1 -name "some_name.php*" -exec du -bk {} \; | awk '{ total = total + $1 } END { print total }'

Leave a Reply

Your email address will not be published. Required fields are marked *