Writing simple scripts

This is the section were everything we've talked about so far starts to come together. Scripting can be very fun and rewarding, as they allow you to automate large jobs or just simplify something that you find yourself doing over and over. The most important point about scripting is this: if it's something you'll be doing more than once, you really should be making into a script. This is a great habit to get into.

A script is a very simple concept. A script is just a text file, that contains commands for your shell to execute one by one. A script written to be executed by Bash is known as a Bash script, and that's what we'll work on creating in this section.

At this point, I'm assuming that you've practiced a bit with ...

Get Mastering Ubuntu Server - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.