Linux find: How to exclude the ".snapshot" directory from find's results? find $filedir -name .snapshot -prune -o -name \*.gz -mmin +10 -print should do it.