Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
It was just an assignment from a list of scripts to practice, and this was the final one. I've spent hours on it and I wanted to get some help since through research and my book I haven't been able to get anything to work.