Hi,
My script ask for the input of two numbers in the middle of it.
I would like to know how to indicate this two numbers when I submit the script.
thanks for any help,
jalves
Hi,
My script ask for the input of two numbers in the middle of it.
I would like to know how to indicate this two numbers when I submit the script.
thanks for any help,
jalves
What do you mean by 'indicate'?
What do you mean by 'submit'?
typically, something like
myscript.sh 123 456
then access $1 and $2 as the input values
In the middle of the script it ask to enter a selection number [1-26], and I want to give this number at the begining something like ./myscript.sh <3 where 3 is the selected number.
Thank you.
./myscript <<EOF
3
5
EOF