Anon46 |
03-07-2013 07:36 AM |
Need help with shell script (easy one)!
Hello, all! I'm new around these parts, and just needed some quick help with a shell script.
I'm taking my first intro to linux course and just needed help scripting a simple program.
I need to write a script which accepts any of these three words: "Color, Drink, Animal", and sorts the output accordingly.
So, basically, when I run the program I need it to list like this [1) Color, 2) Drink, 3) Animal], and ask what input. Depending on the input, I need it to locate a file (in this case depending on the input, I want it to read the files color.sh, drink.sh, or animal.sh), and then display what I have written in them.
Thanks for the help to anyone that reads this.
|