======================
Count=1
Part=0
echo "This zip contains the PDF Invoices" > /tmp/README
zip PDF_Invoice_`date +'%d-%b-%Y'`-${Part}.zip /tmp/README
while [ ${Count} -le 30174 ]
do
FileName=`head -n ${Count} /tmp/modfilelist | tail -n 1`
echo "${Count} - Filename is ${FileName}"
echo "Count = ${Count} - Part = ${Part} - Zipped File Names - /Data/PDF_Invoice_`date +'%d-%b-%Y'`-${Part}.zip"
zip -g /Data/PDF_Invoice_`date +'%d-%b-%Y'`-${Part}.zip "`head -n ${Count} /tmp/modfilelist | tail -n 1`"
Count=`expr $Count + 1`
if [ `expr $Count / 8000` -gt $Part ]
then
Part=`expr $Part + 1`
echo "Count = ${Count} - Part = ${Part} - Zipped File Names - /D
ata/PDF_Invoice_`date +'%d-%b-%Y'`-${Part}.zip"
zip PDF_Invoice_`date +'%d-%b-%Y'`-${Part}.zip /tmp/README
fi
done
=======================
Thanks
Sravan Kumar E
No comments:
Post a Comment