The Bash shell interpreter is more than just a user environment. It is also a powerful scripting language. Almost any series of commands can be inserted into a bash script for quick and easy automation.
The Linux Documentation Project hosts an in-depth guide to bash scripting.