If you're interested in more, I recently wrote a short book about learning Bash scripting: https://gumroad.com/l/datascience
In the book, I use "adventures" to demonstrate Bash concepts, where I guide the reader through using the command line to answer questions such as: What's the average tip of a NYC cab driver? Is there a correlation between a country's GDP and life expectancy? etc