How do i read from kb using shell script but i need to read it from same line.
Script :-
echo "Please Enter Your Choice "
read CHOICE
But it goes to next line i need it to read it next to Choice and not new line.
How do i read from kb using shell script but i need to read it from same line.
Script :-
echo "Please Enter Your Choice "
read CHOICE
But it goes to next line i need it to read it next to Choice and not new line.
printf "Please Enter Your Choice "
read CHOICE
echo $CHOICE
echo -n "Please Enter Your Choice "
read CHOICE
Thanks printf worked for me , echo -n didn't worked.
Using bash ...
read -p "Please Enter Your Choice: " CHOICE