#!/bin/bash for f in *.ts; do base=$(basename $f .ts) tsp --default-charset ISO-8859-9 --default-pds astra \ -I file $f \ -P analyze -o $base.analyze.txt \ -P analyze --json -o $base.analyze.json \ -P psi -a -o $base.psi.txt \ -P tables --tid 0x91 --text-output $base.sgt.txt --xml-output $base.sgt.xml \ -O drop done