Originally Posted by UltraSoul
I am not sure whether I contact the correct forum. If not I will stop the query.
I have solaris 10 installed. I have a question about shell command execution.
I want to execute the read shell command in echo string as follows.
echo "input: `read input`"
But the command above failed to execute. I wonder how I do it?
I believe the backticked string is executed first, so your prompting "echo" will follow rather than lead the entry of input, and since a "read input" command doesn't return any text, your "Echo" prompt will become very confusing, asking for "input:" after the input has already been expected.
read input?"Enter Input:"