Still useful in 2021. Used this to build out a menu to give controlled and simplified access to a new appliance of ours. Thanks!
@byteman10 жыл бұрын
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)
@earnestredwood46944 жыл бұрын
This is great thank you for all that you teach up with Linux. I am still learning and it never ends.
@theurbanpenguin4 жыл бұрын
Thanks you sir! You are very kinf to make a comment and I appreciate it Earnest
@jentr56853 жыл бұрын
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.
@meiowalot75705 жыл бұрын
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
@DDBAA245 жыл бұрын
This Bob here , he's been sharing his password with me , lol
@plasticinthetree42614 жыл бұрын
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
@pepe-perez4 жыл бұрын
read -n1 answer
@adriansrealm11 жыл бұрын
It really should have a default condition in the event the user enters something other than the three things the menu has handlers for.
@vincentpham74457 жыл бұрын
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.
@derSchmidi8 жыл бұрын
Excellent guide! That was soo helpful like so many of your videos. Great job!
@Trevs-Shed11 жыл бұрын
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.
@10thDoctorLove8 жыл бұрын
This is absolutly fantastic. Thank you so much for doing it :)
@AwesomeBob11 жыл бұрын
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.
@j99mac4 жыл бұрын
dose the trap and control c work on osx Mac?
@mx22a10 жыл бұрын
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!
@DBINB-sw3ow5 жыл бұрын
love you brother >> you solve my big problem love you again
@Asimov167 жыл бұрын
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
@turk0lu3737 жыл бұрын
seems to be using vi. comes with every distro, has a lot of options. check it out
@Asimov167 жыл бұрын
Thanks. I got it to work in nano in the end, once I understood what was going on
@kencheng29294 жыл бұрын
Awesome stuff
@sinistergeek6 жыл бұрын
very helpful video!!
@karakurt78764 жыл бұрын
Whoah, sound is hurting.... Otherwise great one, thanks! I wasted a lot of time searching this topic
@karakurt78764 жыл бұрын
Nope, wrong again... I'd love to see same thing, but with arrow keys navigation