#! /bin/ksh for FILE in $(ls *events.bin) do echo $FILE PREFIX=$(basename $FILE .bin) python -m CCSDS --convert $FILE python -m CCSDS $FILE > $PREFIX.log done