Chapter 13. Console Scripting

In any of the companies that I worked for, if you were given the task of writing a short utility program and, after two weeks, you returned with a beautiful-looking X Windows application, you would be called in front of the boss and be sharply criticized. In the business world, time is money and developing GUI applications is time-consuming and expensive.

Console scripts, sometimes called text-based or terminal scripts, are scripts designed to run in a text-only environment such as the Linux console, a Telnet session, or an xterm window. Console scripts are easy to design and quick to build, but they don't have to be hostile to the user. Bash and Linux both provide features for writing friendly console scripts that ...

Get Linux Shell Scripting with Bash 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.