9.7 Interactive Input
read param
We can illustrate this with the simple script:
#!/bin/sh
echo "Input a phrase \c" # This is /bin/echo which requires "\c" to prevent <newline>
read param
echo param=$param
When we run this script it prompts for input and then echoes the results:
$ ./read.sh
Input a phrase hello frank # I type in hello frank <return>
param=hello frank