Tag: shell

Minimal safe Bash script template

Bash scripts. Almost anyone needs to write one sooner or later. Almost no one says "yeah, I love writing them". And that's why almost everyone is putting low attention while writing them.
December 14, 2020
Read more

Command line arguments anatomy explained with examples

Many of the scripts and executables allow providing some command line arguments. They may be required or optional. There are flags, that are just switches changing command behavior. There are, of course, arguments with values. And there are so-called positional arguments – parameters given in some order without any extra indications.
September 25, 2020
Read more