Contents
Part One The Basics of Shell Scripting
Chapter 1 Scripting Quick Start and Review
Declare the Shell in the Shell Script
Comments and Style in Shell Scripts
if … then … elif … (else) statement
Using break, continue, exit, and return
Double Quotes, Forward Tics, and Back Tics
Using the echo Command Correctly
Built-In Mathematical Functions
File Permissions, suid and sgid Programs
chmod Command Syntax for Each Purpose
To Set a Program to Always Execute as the Owner
To Set a Program to Always Execute as a Member of the File Owner's Group
To Set a Program to Always Execute as Both the File Owner and the File Owner's Group
Running Commands on a Remote Host
Uppercase or Lowercase Text for Easy Testing
Get Mastering UNIX® Shell Scripting: Bash, Bourne, and Korn Shell Scripting for Programmers, System Administrators, and UNIX Gurus, 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.