#!/bin/bash for f in *.ts; do base=$(basename $f .ts) tsp -I file $f \ -P analyze --isdb -o $base.analyze.txt \ -P analyze --isdb --json -o $base.analyze.json \ -P psi --isdb -a -o $base.psi.txt \ -O drop tsdump $f --rs204 --isdb --max-packets 50 >$base.packets.txt done