Skip to Main Content
CompTIA Linux+ Certification All-in-One Exam Guide, Second Edition (Exam XK0-005), 2nd Edition
book

CompTIA Linux+ Certification All-in-One Exam Guide, Second Edition (Exam XK0-005), 2nd Edition

by Ted Jordan, Sandor Strohmayer
May 2023
Intermediate to advanced content levelIntermediate to advanced
800 pages
19h 12m
English
McGraw-Hill
Content preview from CompTIA Linux+ Certification All-in-One Exam Guide, Second Edition (Exam XK0-005), 2nd Edition

CHAPTER 13

Writing Shell Scripts

In this chapter, you will learn about

•   Advanced shell concepts

•   Understanding shell script components

•   Using control operators

•   Processing text streams

Software is supposed to serve the human and not the other way around

—Gloria Washington, Howard University

This chapter covers how to create and control basic shell scripts on a Linux system. Shell scripts are text files that contain a variety of commands that can be used to automate tasks and process information. Scripts have features of many programming languages, including variables, operators, conditionals, looping, and more. Because these features are related to the Bash shell, details are found in the bash man page.

NOTE   Most of the scripts ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

CompTIA A+ Certification All-in-One Exam Guide, Eleventh Edition (Exams 220-1101 & 220-1102), 11th Edition

CompTIA A+ Certification All-in-One Exam Guide, Eleventh Edition (Exams 220-1101 & 220-1102), 11th Edition

Mike Meyers

Publisher Resources

ISBN: 9781264802777