I had a bash file which prompted the user for some parameters and used defaults if nothing was given. The script then went on to perform some other commands with the paramet
To read directly from the terminal, not from stdin (assuming you're on a *NIX machine, not a Windows machine):
while read foo" done