Nice, thanks! Been looking for something like this for a long time. Not being proficient in bash scripting, I appreciate the head-start. One suggestion if your menu is going to use 1 character input (number or letter), perhaps change the "read answer" command to: read -n1 -p "Your Choice:" answer (no [Return] required)
At 6:10 or so, 4,18> is a simpler, more direct way to indent code. It seems like overkill to use a regex and s/// to indent contiguous lines of code, so a pattern match and replace just isn't needed. Also, I think if you want a couple lines between the choices and the prompt, a couple of echo statements all by themselves is more straightforward than the echo -e " ", e.g.: echo echo I would also use read statements in place of the two prompts using the echo -n (text) because I think it is more readable and easy to understand expressed as: read -p "Enter your selection " answer ... read -p "Enter return to continue" input
Nice! The "Enter return to continue" works great for commands like "who" that need to print to the screen, but my menu also launches graphical apps like firefox, audacious, etc, and it sucks to have to hit return after closing them in order to continue. How can I structure my script so that I see the output for commands like who and cal, but does NOT call for entering return when launching gui apps? Thanks
Thank you very much! Follow your video I build a little script to use a list of online FM stations using mplayer for it. I just add a line with a timer sleep on the script. Nice!
I really fond of the vi substitution vi tricks that you perform, can you make a video that explain the trick? It's will be helpfull for anyone when they work on shell programming environment.
Can the commands that you put in the menu only be commands that the particular user would usually have permission to carry out.? Or could I, for instance set a menu option that only myself as root would usually be able carry out.
Love the videos, but can you do some volume leveling going forward? It's always brutal during the intro then quieter during the content portion of the video.
Would there be any point, pointing out your mistakes in a video, as you are not really going to hear us LOL. PS what editor are you using. I tried this in nano, but some things don't work
Still useful in 2021. Used this to build out a menu to give controlled and simplified access to a new appliance of ours. Thanks!
This is great thank you for all that you teach up with Linux. I am still learning and it never ends.
Thanks you sir! You are very kinf to make a comment and I appreciate it Earnest
Nice, thanks! Been looking for something like this for a long time. Not being proficient in bash scripting, I appreciate the head-start. One suggestion if your menu is going to use 1 character input (number or letter), perhaps change the "read answer" command to: read -n1 -p "Your Choice:" answer (no [Return] required)
At 6:10 or so, 4,18> is a simpler, more direct way to indent code. It seems like overkill to use a regex and s/// to indent contiguous lines of code, so a pattern match and replace just isn't needed.
Also, I think if you want a couple lines between the choices and the prompt, a couple of echo statements all by themselves is more straightforward than the echo -e "
", e.g.:
echo
echo
I would also use read statements in place of the two prompts using the echo -n (text) because I think it is more readable and easy to understand expressed as:
read -p "Enter your selection " answer
...
read -p "Enter return to continue" input
If I want the users to enter both Uppercase and Lowercase alphabet for the menu selection, what should I put before the ) to instead? Thx.
This Bob here , he's been sharing his password with me , lol
Excellent guide! That was soo helpful like so many of your videos. Great job!
Nice! The "Enter return to continue" works great for commands like "who" that need to print to the screen, but my menu also launches graphical apps like firefox, audacious, etc, and it sucks to have to hit return after closing them in order to continue. How can I structure my script so that I see the output for commands like who and cal, but does NOT call for entering return when launching gui apps? Thanks
read -n1 answer
Thank you very much! Follow your video I build a little script to use a list of online FM stations using mplayer for it. I just add a line with a timer sleep on the script. Nice!
This is absolutly fantastic. Thank you so much for doing it :)
It really should have a default condition in the event the user enters something other than the three things the menu has handlers for.
dose the trap and control c work on osx Mac?
I really fond of the vi substitution vi tricks that you perform, can you make a video that explain the trick? It's will be helpfull for anyone when they work on shell programming environment.
Can the commands that you put in the menu only be commands that the particular user would usually have permission to carry out.?
Or could I, for instance set a menu option that only myself as root would usually be able carry out.
love you brother >> you solve my big problem love you again
Love the videos, but can you do some volume leveling going forward? It's always brutal during the intro then quieter during the content portion of the video.
Whoah, sound is hurting.... Otherwise great one, thanks! I wasted a lot of time searching this topic
Nope, wrong again... I'd love to see same thing, but with arrow keys navigation
Would there be any point, pointing out your mistakes in a video, as you are not really going to hear us LOL. PS what editor are you using. I tried this in nano, but some things don't work
seems to be using vi. comes with every distro, has a lot of options. check it out
Thanks. I got it to work in nano in the end, once I understood what was going on
Awesome stuff
very helpful video!!
That penguin from the hood...
Good stuff
fantastic!
You da bomb 💣
15>>
Pengdeliciousness...
:) Thanks
Please don’t use white it hurts my eyes 👀