#! /bin/sh heavy=`ls -1 unzipped*/*/*.bin | grep -v light` for d in $heavy; do echo $d ./dump2 < $d echo echo done