SHell Script Help! When reading input from a user
Currently I have a portion of a script... its looped with a while-do loop hence for the "breaks"
echo "Are you sure you wish to delete this APP ? (y or n)"
read DELETEME
case $DELETEME in
y|yes|Y|YES)
echo "Deleting OS"
break
;;
n|no|N|NO)
echo "Returning to Main Menu, Press Enter to Continue"
;;
*)
echo "Unknown answer returning to the Main Menu, Press E
nter to Continue"
;;
esac
My question is.. When I run this script and this question is asked. My answer is displayed on a new line. Is there any way I can make my answer display on the same line as the question???
So it would look like this
Are you sure you wish to delete this APP ? (y or n) : y
instead of
Are you sure you wish to delete this APP ? (y or n)
y
-Thanks
|