Summary

This chapter covered using variables for shell script programming. You saw how scalar and array variables were defined, accessed, and unset. We also looked at a special category of variables known as environment variables. In subsequent chapters, we will look at how variables are used to achieve a greater degree of flexibility and clarity in shell scripts.

Get Sams Teach Yourself Shell Programming in 24 Hours, 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.