Metropoli BBS
VIEWER: validate MODE: TEXT (ASCII)
#!/bin/sh
# ----------------------------------------------------------------------------
# Description:
# Validates $HOME/cap2/bin/apl2 by processing 326 sample files, comparing
# the answers against predicted ones.
#
# $HOME should be set to the path to the cap2 subdirectory, e.g. "/home/smitty"
# if it's /home/smitty/cap2.  $PATH should have $HOME/cap2/bat:$HOME/cap2/bin
# at it's front before invoking.
# ----------------------------------------------------------------------------
# Changelog:
# 920101 Created by Smitty.
# ----------------------------------------------------------------------------
if [ "$1" = "" ]
	then let i=40
	else let i=$1
fi
cd $HOME/cap2/sample
for j in `ls *.txt | cut -d. -f1 | sed s/sam//`; do
	if [ $j -ge $i ]; then
		cd $HOME
		cap2/bat/validsub $j
	fi
done
[ RETURN TO DIRECTORY ]