#!/bin/sh for s in $1/* do if [ -d "$s" ] then if [ ! -d "$s/Post" ] then echo "Post: "$s else if [ ! -e "$s/Post/ft-fm" ] || [ ! -e "$s/Post/ft-fp" ] then echo -ne "ft: "$s for t in $s/Post/input*.lpi* do if [ ! -e "$t" ] then echo -ne " ******" fi done echo fi fi fi done