quoth the Mark Knecht: > On Sun, 13 Feb 2005 14:44:02 -0600, Boyd Stephen Smith Jr. <snip> > > > 3) Ask me which on I want to use > > Easy to make it ask the question but so far I cannot find the bash > command to wait for keyboard input. There must be one but I don't see > it in man bash. > This is easy, here's an example:
echo "What is you name? "
read NAME
echo "Your name is ${NAME}"
So basically whatever the user types will be put in the value of the variable
following 'read'
<more snip>
-d
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
pgpr9CjklWVeB.pgp
Description: PGP signature
