Lazy pro usage of bash associative arrays (dictionaries)
This is an example on how to leverage dictionaries like contraptions in bash.
Tested on RHEL 7, Ubuntu 14.04, 16.04
The lazy programmer scripts
scripts that work
This is an example on how to leverage dictionaries like contraptions in bash.
Tested on RHEL 7, Ubuntu 14.04, 16.04
Creating users on Linux is trivial, but creating a user with sudo rights and no password confirmation when using sudo is not.
The script must be run under user root.
Tested on Ubuntu, Debian, CentOS and RHEL.