martindilling / shell-scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shell Scripts

Hopefully this could end up as a collection of helpful shell scripts :)

Scripts

Script file Options Description
ssh-config-add --host --hostname --identity --user [--extras] Add an entry to the ssh config file (~/.ssh/config)
ssh-config-clean Clean all autogenerated entries from ssh config file (~/.ssh/config)
hosts-add --ip --host Add an entry to the hosts file (/etc/hosts)
hosts-clean Clean all autogenerated entries from hosts file (/etc/hosts)
string-gen <length> Generate a random string with given length (Default: 32)

Options

Option Description
--force Skip all user interaction. Implied 'Yes' to all actions.
-q⎮--quiet Don't print any output
-l⎮--log Print output to logfile
-s⎮--strict Exit script with null variables. i.e 'set -o nounset'
-v⎮--verbose Output more information.
-d⎮--debug Runs script in BASH debug mode (set -x)
-h⎮--help Display this help and exit
--version Output version information and exit
--backup Backup and overwrite previous backup (Auto backup on first run)
--restore Restore backup (Doesn't run script only restores)

Credits

Most of the things are modifications of this repo: natelandau/shell-scripts

About


Languages

Language:Shell 100.0%