Bash ... some new scripts to - handling user input
Archive - Originally posted on "The Horse's Mouth" - 2015-11-27 21:39:35 - Graham EllisI just completed a three day "bash shell programming" course and have uploaded a whole host of new examples, and updated some older ones too. Here are some examples that relate to inputting from STDIN ... further links to other groups of new examples to follow
Asking a question and read from STDIN in shell - [here] or offer a series of options from which the user should select one [here]
Usage line - and a loop to go through all command line paramters - [here]
Stopping ^C from exiting from the script with trap [here]