Hi All,
I am a novice to UNIX, i need to know is there a way to provide 2 inputs when the shell prompts and i need to assign those 2 values to 2 separate variables. I dont want to give those values as a arguments (while running the script).
Thanks in advance!!
You can either ask for them one by one, like:
echo -n Please enter first value: read VALUE1 echo -n Please enter second value: read VALUE2
or you can read them both at once.
echo -n Enter two values, separated by blanks: read VALUE1 VALUE2