Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> 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
>
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Oct 31 2007 - 13:20:30 CDT
![]() |
![]() |