3 cmd=`which "$3"` || true
5 [ -f "$1" ] && [ -d "$2" ] && [ -x "$cmd" ] || {
6 echo "Execute a command for all debs in an archive"
7 echo "Usage: $0 <packages file> <archive root dir> <command>"
11 list=`readlink -f "$1"`
14 zgrep ^Filename: "$list" | cut -f 2- -d\ | xargs -l1 $cmd