Hi All
I have the following script that is supposed to change permissions of incoming files to a directory, but it does not seem to do what I want, please can you help:
mkdir -p /tmp/tmpdir
find /moneta_polled01/sgsn/ -exec ls -l {} \; |grep -v rwxrwxrwx |awk '{print $9}' > /tmp/tmpdir/filelist
cd /tmp/tmpdir
/usr/bin/split -l 1000 fileslist
for i in `ls x*`
do
for j in cat $i
do
chmod 777 /moneta_polled01/sgsn/$j
done
done
rm -rf /tmp/tmpdir
So what I want is for that file that arrives at
/moneta_polled01/sgsn/
directory should change to full permissions.
Please can you help
FR