Chapter 1. Getting Started with Shell Scripting
This chapter is a brief introduction to shell scripting. It will assume the reader is mostly familiar with script basics and will serve as a refresher.
The topics covered in this chapter are as follows:
- The general format of a script.
- How to make a file executable.
- Creating a good Usage message and handling return codes.
- Show how to pass parameters from the command line.
- Show how to validate parameters by using conditional statements.
- Explain how to determine the attributes of files.
You have been reading a chapter from
Linux Shell Scripting Bootcamp
Published in:
Jul 2017
Publisher:
Packt
ISBN-13:
9781787281103
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime