!/bin/bash
currnetPath=pwd
tmpPath=$currnetPath/tmpPath
mkdir tmpPathzip=”.zip”path=tmpPathzip=”.zip”path=1
for zipfile in ls $path
do
if [[ zipfile= zipfile= zip ]]
then
echo zipfileunzipzipfileunzipzipfile -d ./tmpPath
echo tmpPathcdtmpPathcdtmpPath
for file in ls $tmpPath
do
echo $file
newfile=echo $file | sed 's/rds_/rds-/g'
mv filefilenewfile
done
zip $zipfile *
mv $zipfile ../
rm -f *.*
cd ../
fi
done
rm -fr $tmpPath
批量解压与文件重命名脚本

5777

被折叠的 条评论
为什么被折叠?



