Rockbottom
03-25-2006, 09:34 AM
Hello,
I am just starting to learn some basic bash scripting and was wondering if someone could help me with the following basic script. How would I go about making it so that when the script is run it asks the user a question and when they answer it, it echos the output.
For example:
User runs the script
Script asks: How old are you? Users response: 23
Script echos: You are 23 years old.
I obviously won't actually use the above script as it is pointless, I just want to learn how something like that is done for a different script I am working on. :)
Cheers,
Steve.
I am just starting to learn some basic bash scripting and was wondering if someone could help me with the following basic script. How would I go about making it so that when the script is run it asks the user a question and when they answer it, it echos the output.
For example:
User runs the script
Script asks: How old are you? Users response: 23
Script echos: You are 23 years old.
I obviously won't actually use the above script as it is pointless, I just want to learn how something like that is done for a different script I am working on. :)
Cheers,
Steve.
