does anyone know if you can read a single character from a screen without hitting the return key and without using the 'read' command.
ie: a read command like below
echo "are you sure you want to do this: 'Y/N' "
read opt
if [ $opt = "Y" ]
continue
else
exit
fi
so instead of doing the the 'read' we just want to press the 'Y' key
thanks
Frank
ie: a read command like below
echo "are you sure you want to do this: 'Y/N' "
read opt
if [ $opt = "Y" ]
continue
else
exit
fi
so instead of doing the the 'read' we just want to press the 'Y' key
thanks
Frank