Find files tips: #!/bin/bash find /u1/database/prod/arch -type f -mtime +3 -exec rm {} \; cd /some/dir du -m --max-depth=1 find . -mtime +3 Argument list too long workaround: find -type f -name '*.txt' | wc -l