#!/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 done