Collect User Input in a Bash Shell ScriptFeb 02, 2011, 12:04 (0 Talkback[s])
WEBINAR: On-demand Event
Replace Oracle with the NoSQL Engagement Database: Why and how leading companies are making the switch REGISTER >
[ Thanks to Andrew Weber for this link. ]
"The read command is designed to read and then use in the script input from the user. The input that is provided by the user is stored as a variable. This is a builtin variable that will store one line of input from the user in one or more variables. The read command is valuable as it is a major way to input information into a shell script. Lines are read into the script with standard input and split via the $IFS variable. This stands for internal field separator. The first word is assigned the first variable, the second word the second variable, etc.
0 Talkback[s] (click to add your comment)