#!/bin/ksh if [ $# -ne 1 ]; then echo "Usage: progress Interactive." exit 127 fi # First head down through all of the directories recursively echo "Scanning directories" #SAU_DIR_LIST=`t` SAU_DIR_LIST=`ls Interactive.$1 | grep "[0-9]"` for SUB_DIR in ${SAU_DIR_LIST} do echo "Checking ${SUB_DIR}..." if [ ! -d "./Interactive.$1/${SUB_DIR}" ] then echo "${SUB_DIR} is not a directory - skipping." else # grep Current ${SUB_DIR}/psf/spectre.out tail -1 ./Interactive.$1/${SUB_DIR}/sd*/psf/spectre.out fi done echo "Finished scanning directories..."