!/bin/bash
currnetPath=pwd
tmpPath=$currnetPath/tmpPath
mkdir
tmpPathzip=”.zip”path=
t
m
p
P
a
t
h
z
i
p
=
”
.
z
i
p
”
p
a
t
h
=
1
for zipfile in ls $path
do
if [[
zipfile=
z
i
p
f
i
l
e
=
zip ]]
then
echo
zipfileunzip
z
i
p
f
i
l
e
u
n
z
i
p
zipfile -d ./tmpPath
echo
tmpPathcd
t
m
p
P
a
t
h
c
d
tmpPath
for file in ls $tmpPath
do
echo $file
newfile=echo $file | sed 's/rds_/rds-/g'
mv
file
f
i
l
e
newfile
done
zip $zipfile *
mv $zipfile ../
rm -f *.*
cd ../
fi
done
rm -fr $tmpPath