2 # harshperm traverses directory trees and sets the permissions to a restricted
3 # value (rwx------ for directories and rw------- for files).
7 if [ -z "${args[*]}" ]; then
8 echo "no arguments provided."
12 for (( i=0; i < ${#args[*]}; i++ )); do
14 # echo "curr is $current"
16 find -L "$current" -type d -exec chmod 700 {} ';'
17 # >/dev/null 2>/dev/null
18 find -L "$current" -type f -exec chmod 600 {} ';'
19 # >/dev/null 2>/dev/null