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