hi all
i am trying to get help with writing a script using case statement to display menu as
1) Authentication log
2) System log
3) Messages
4) Dmesg
5) Boot log
Q) Exit
When selecting the menu by 1
or 2
or 3
o 4
or 5
, it should display the last 10 lines of the log files,
if selected wrongly it should give an error and should not exit, rather the user should be able to
try again. Only entering Q
it should exit.
look into man select
(for ksh/bash shells)
sea
November 28, 2014, 1:06pm
3
Or use the search function of the forum.
Additionaly, what have you tried so far?
renegade11:
hi all
i am trying to get help with writing a script using case statement to display menu as
1) Authentication log
2) System log
3) Messages
4) Dmesg
5) Boot log
Q) Exit
When selecting the menu by 1
or 2
or 3
o 4
or 5
, it should display the last 10 lines of the log files,
if selected wrongly it should give an error and should not exit, rather the user should be able to
try again. Only entering Q
it should exit.
This is everything that you wanted to know:
Google