You need to get input from the user.
Use the read statement:
1 |
read |
or:
1 |
read – p "answer me this " ANSWER |
or:
1 |
read PRE MID POST |
In its simplest form, a read statement with no arguments will read user input and place it into the shell variable REPLY.
If you want bash to print a prompt string before reading the input, use the -p option.
The next word following the -p will be the prompt, but quoting allows you to supply multiple words for a prompt.
Remember to end the prompt with punctuation and/or a blank, as the cursor will wait for input right at the end of the prompt string.
If you supply multiple variable names on the read statement, then the read will parse the input into words, assigning them in order.
If the user enters fewer words, the extra variables will be set blank.
If the user enters more words than there are variables on the read statement, then all of the extra words will be part of the last variable in the list.