18 November 2010

Bash script to delete all files which name starts with "FileTemplate" within a .zip file

Hallo,

a bash file to delete all files which name starts with "FileTemplate" within a .zip file.

best wishes,
Antonio

#!/bin/sh
A=$(ls *zip)

for n in $A;
do
echo "opening file : " $n
zip -d $n FileTemplate*
echo "finish file : " $n
done

No comments: