2 # easyperm: traverses directory trees and sets the permissions to a completely
3 # accessible value (rwxrwxrwx for directories and rw-rw-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 "$current" -type d -exec chmod 777 {} ';'
17 # >/dev/null 2>/dev/null
18 find "$current" -type f -exec chmod 666 {} ';'
19 # >/dev/null 2>/dev/null