Chapter 4
Linux Scripting
Recall from Chapter 1, “The Network Programmability and Automation Ecosystem,” and Chapter 2, “Linux Fundamentals,” that automation has been described as a process of breaking down a big task into smaller, repeatable tasks and then attempting to automate each of those repeatable tasks by doing the heavy lifting only once and having a tool repeat the task for you. This chapter gives you your first real taste of automation using programmability: writing scripts in the Bash programming language, more commonly referred to as the Bash scripting language. Scripts (whether in Bash or any other language) are written once and can, theoretically, be executed an infinite number of times.
A shell is a program that parses and interprets ...
Get Network Programmability and Automation Fundamentals 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.