I do not know if this is the best way. This is the beginning of building a bigger script. I am trying to see if a variable is a digit (3 digits between 0-9) in a ksh script. Do I need to verify the variable before I get into the IF statement?
for list in `grep -l '\*\*\*\*\*' ??????`
varLine=`head -l -n 1 $list`
varDocType=`echo "$varLine" | cut -c23-25`
if [ varDocType -eq +([0-9]) ]
echo "Filename=$list Document Type=$varDocType"
echo "Not Correct Type"