#!/bin/bash for i in `ls -1 |awk -F. '{print $1}'|sort|uniq`; do echo "======= ${i} =======" jsexec -n ansitex/frames_check $i done