[for]
  1. http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-7.html
#!/bin/bash
FILES=$1/*.pkt
#echo "start"
#echo "$FILES"
for f in `ls $FILES`
do
echo "Processing $f file..."
7za a -tzip -v50M "$f.zip" "$f"
# take action on each file. $f store current file name
#cat $f
done