How I use Bash to automate tasks on Linux
The Bash command line is a great way to automate tasks. The for command makes it easy to perform one or more actions on a set of files. The if command allows you to perform many different tests, such as if a file is really a file or if it's empty.