#!/bin/sh
mv /usr/local/ftpdata/pub/* /usr/local/ftpdata/data79/
chmod 777 /usr/local/ftpdata/data79/*
mv /usr/local/ftpdata/data79/* /usr/data/upload/
cd /usr/data/upload
for i in `ls M10*.Gif`; do mv $i `echo $i|sed 's/^../M1_2010/'`; done
for i in `ls P2010*ZPE.JPG`; do mv -f $i `echo $i|sed 's/..ZPE\.JPG$/00_ZPE\.JPG/'`; done
for i in `ls P2010*VPE.JPG`; do mv -f $i `echo $i|sed 's/..VPE\.JPG$/00_VPE\.JPG/'`; done
for i in `ls P2010*WPE.JPG`; do mv -f $i `echo $i|sed 's/..WPE\.JPG$/00_WPE\.JPG/'`; done
for i in `ls P2010*.JPG`; do mv -f $i `echo $i|sed 's/^P/P_/'`; done
#!/bin/sh
monitor_dir=/usr/local/ftpdata/web_sea
web_sea_dir=/usr/data/upload/web_sea
survey_dir=/usr/data/upload/survey
for file in `ls ${monitor_dir}/*.000`
do
mv ${file} ${survey_dir}/${file##*/}
chmod 777 ${survey_dir}/${file##*/}
done
for file in `ls ${monitor_dir}`
do
mv ${monitor_dir}/${file} ${web_sea_dir}/${file##*/}
chmod 777 ${web_sea_dir}/${file##*/}
done