How do i make my read be on the same line as the prompt? Here is my sample code:
#!/usr/bin/sh
opt='1'
while test "$opt" != "Q"
do
clear
echo '1) Option'
echo '2) Option'
echo '3) Option'
echo '4) Option'
echo ''
echo 'Enter your option now or Q ot quit >'
read opt
done
This puts the read on the line below the echo but I want it after the angle bracket. Sorry to bother your ubernesses with trival code, but thanks if you reply.