It's really the same concept... just pass the entire pattern instead of just the date.
check20.sh:
Code:
#!/bin/ksh
myfilepattern=$1
integer filecount=0
for file in $myfilepattern; do
filecount=$filecount+1
done
if (( $filecount == 20 )); then
exit 0
else
exit 1
fi
Syntax:
check20.sh BARE01_DLY_???_20060803
check20.sh BARE02_DLY_???_20060803
check20.sh BARE01_DLY_???_20060720
etc.