I like to automate. I like it so much that I will not hesitate to spend 8+ hours on writing a script that replaces 5 minutes of work every month. Most of my automation is for CLI (command line interfaces). On Windows, that means CMD, but for most other platforms (Linux, MacOS, Busybox) the best tool for it is *bash* or *shell*. I've created my own self-contained [bash *boilerplate* script](<https://github.com/pforret/bashew>) (a good scripting starting point, with a lot of regularly recurring functionality already built in.)

But I still needed to `git clone` the repository, or copy/paste from the github page, and customise it every time (using different options, parameters). So I went 1 step further: here is now the fully interactive, always up-to-date **[BASH BOILERPLATE GENERATOR](<https://toolstud.io/data/bash.php>)**

!\[\](/wp-content/uploads/2018/06/fig-03-06-2018\_14-02-08.jpg){ .featured }

[![](<https://mk.forret.com/wp-content/uploads/2018/06/Screen-Shot-2018-06-03-at-16.02.43-2.png>)](<https://toolstud.io/data/bash.php>)

With just one click, you can get the boilerplate code for CLI scripts like:

- `convert_a_file.sh [action] [outputfile] [inputfile(s)]`
- `convert_a_file.sh [inputfile]`
- `send_an_email.sh --from [from] [destination] [subject] [body]`
- `compress_files.sh --test --method [method} [zipfile] [file(s)]`

The boilerplate code takes care of

- option parsing: use flags (e.g. `-v` for verbose), options (e.g. `--steps 20`) with short and long name (e.g. `-v` = `--verbose`)
- different output commands for verbose/normal/error messages
- confirmation yes/no …

The only things you still need to add is the actual code that does all that stuff that you wanted to automate.
