# find . -type f -exec ls -ld {} \; | egrep -ve "-r..r..r.." if($status == "0") then #the grep command found something because it finished with status zero echo " " echo "----------------------------------------------------" echo " The above files do not have ugo r permission" echo " This makes them unreadable to some users " echo "----------------------------------------------------" endif