An Introduction to BASH Scripting
So you've learned a few Linux commands to get around the system, and unless you explicitly said otherwise during the installation process, you are most likely using the Bourne Again Shell (BASH). BASH offers much more than just typing commands to navigate around the Operating System - almost anything you can do in other basic scripting languages, you can do in BASH. This talk will cover:
- The structure of a BASH script
- Setting and reading variables and arguments
- Branches and comparisons
- Background Processes
- Output literals
- Commenting out code
This talk will include plenty of examples of useful BASH scripts to automate common database administration tasks. However, these concepts will be applicable to any aspect of system administration as well.
Solomon Chang is MySQL certified, and works as a senior DBA for Ooyala. He is the former president of LAMPSIG and an evangelist of Open Source.