© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
J. VarmaPro Bash https://doi.org/10.1007/978-1-4842-9588-5_11

11. Programming for the Command Line

Jayant Varma1  
(1)
Berwick, VIC, Australia
 

This book is about programming with the shell, not about using it at the command line. The information provided here is about editing the command line, creating a command prompt (the PS1 variable), or retrieving commands from the interactive history. This chapter is about scripts that will mostly be useful at the command line rather than in other scripts.

Many of the scripts presented in this chapter are shell functions. Some of them have to be that way because they change the environment. Others are functions because ...

Get Pro Bash: Learn to Script and Program the GNU/Linux Shell 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.