Unix

Small information nuggets and recipies about Unix

πŸ“‹ Template for interactive bash scripts

My template for when I need to do bash scripts with both a β€œhuman” and a β€œmachine” interface: Template for interactive bash scripts: supports command line options with values prompts for any missing parameters/arguments https://gist.github.com/hugocf/8147608 Update 2016-06-02: Moved to repo @hugocf/scripts

πŸ“œ How many bugs and wasted CPU cycles and instances of human frustration

How many bugs and wasted CPU cycles and instances of human frustration (not to mention bad design) have resulted from that one small shortcut about 40 years ago? Keep that in mind next time you want to cut a corner in your code. Rob Pike (via A lesson in shortcuts. Long ago, as the design of the Unix… )

πŸ”— explainshell.com – match command-line arguments to their help text

explainshell.com – match command-line arguments to their help text write down a command-line to see the help text that matches each argument