The script loops okay and ask for a filename
but I cant get the variable "file' to increment
thanks in advance
Jeff
#! /usr/bin/ksh
while true; do
echo "enter your files "
read file
echo $file
file=file+1
echo "Would you like to continue? \c"
read ans
case $ans in
[yY] | [yY][eE][sS]) echo "Fine, then we'll continue."
#`file=file+1`
#break
;;
[nN] | [nN][oO]) echo "We shall now stop."
break
;;
*) echo "You must enter a yes or no !"
esac
done
echo "\nWe are now out of the while loop."
echo "-------------------------
----------
----------
----------
----"
Start Free Trial