Summary

In this chapter, you looked at four forms of substitution available in the shell:

  • Filename substitution

  • Variable substitution

  • Command substitution

  • Arithmetic substitution

As you write scripts and use the shell to solve problems, these types of substitution will be of immense utility.

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.