Re: shell script needed

touch run.ksh
> find <YOUR DIR HERE !!!!> | while read I; do
> A=$(ls -adl $I | awk {'print $1,"'$I'"'})
> U=$(echo $A |  awk -F ' ' '{print $1}' | cut -c2-4 | awk {'print "u="$1'})
>
> G=$(echo $A |  awk -F ' ' '{print $1}' | cut -c5-7 | awk {'print "g="$1'})
> O=$(echo $A | awk -F ' ' '{print $1}' | cut -c8-11 | awk {'print "o="$1'})
>
> U=$(echo $U | sed -e 's/-//g')
> G=$(echo $G | sed -e 's/-//g')
> O=$(echo $O | sed -e 's/-//g')
> echo "chmod" $U $G $O $I >> run.ksh
> done
>
>
> here you go should work
>

Other related posts: