Shell script menu option
by iamin from LinuxQuestions.org on (#5FD40)
I need to create a script with different menu options one of them is to have an option to create a file that contains
1. who is logges
2. disk usage
3. running processor.
The file should be date stamped and saved to a directory.
I'm new to linux so i'm trying to figure this out. So far i know 1)that to stamp i file i can use (date"+%Y.%m.%d"),
2)to show who is logged in i can use the who command
3)to show disk space is df-h
4)running processors ps -aux
5) to create a file is touch.
How do i put these together to create this menu option?
Thank you for all the help!


1. who is logges
2. disk usage
3. running processor.
The file should be date stamped and saved to a directory.
I'm new to linux so i'm trying to figure this out. So far i know 1)that to stamp i file i can use (date"+%Y.%m.%d"),
2)to show who is logged in i can use the who command
3)to show disk space is df-h
4)running processors ps -aux
5) to create a file is touch.
How do i put these together to create this menu option?
Thank you for all the help!