midge25
Programmer
- Jul 19, 2002
- 9
Hi,
I am creating a menu system (with a number of sub menus) and come across a sticky problem.....
I think its best to explain with an example
e.g.
The following directory structure (the number of directories can vary) exists:
apple
banana
cat
dog
elephant
..
I need to create an option for each of the directories. These can vary in number and name.
I have outputted the directory names to a flat file:
> ls -1 > /tmp/directories.dat
1) I dont know how I can list these in the menu display
2) How do I create a case statement for an action against each option considering the number of dirs can vary and differ in name.
Thanks in advance.
I am creating a menu system (with a number of sub menus) and come across a sticky problem.....
I think its best to explain with an example
e.g.
The following directory structure (the number of directories can vary) exists:
apple
banana
cat
dog
elephant
..
I need to create an option for each of the directories. These can vary in number and name.
I have outputted the directory names to a flat file:
> ls -1 > /tmp/directories.dat
1) I dont know how I can list these in the menu display
2) How do I create a case statement for an action against each option considering the number of dirs can vary and differ in name.
Thanks in advance.