# Scripting

Simple coding and execution of bash commands. For more details see links

## Motivation and why

Common tasks that need to be executed with doing lots of commands ie automation

* start up an app, or docker container, using a specific version
* bring down an app or container
* get some stats, ie git commits for certain stories
* Small tasks that dont need to be run on java or used in production

## links

* <https://superuser.com/questions/414965/when-to-use-bash-and-when-to-use-perl-python-ruby>

## Structure

* file extension is `.sh`
* At top of the file should have `#!/bin/bash`

## running script

* `./<name of file>`
* `./<path from current directoy/<name of file>`

## Links

* <https://ryanstutorials.net/bash-scripting-tutorial/>
* <https://devhints.io/bash>
* <http://www.tldp.org/LDP/abs/html/>
* <https://en.wikibooks.org/wiki/Bash_Shell_Scripting>
* <https://en.wikipedia.org/wiki/Bash_(Unix_shell>)

documentation

* <https://tiswww.case.edu/php/chet/bash/bashref.html>
* <https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/bash.1.html>
