Bash Script, read without new line
Hello,
Is it possible to use the read without that attachment is made to return.
For example:
Code:
#! / bin / bash
echo "Enter your age:"
read age
Should output:
Code:
server $. / script
Enter your age:
<saisie ici>
and I want this:
Code:
server $. / script
Enter your age: <saisie ici>
Is this something possible, that I make as an alternative?
Re: Bash Script, read without new line
Good evening,
It is not read that puts a newline before the entry is echo, which is one after its release. You can use it (nicely) not to save with the-n option:
Code:
echo-n "Enter your age:"
read age
Re: Bash Script, read without new line
That's perfect thank you very much