Chapter 8. Writing interactive scripts

Table of Contents
8.1. Displaying user messages
8.1.1. Interactive or not?
8.1.2. Using the echo built-in command
8.2. Catching user input
8.2.1. Using the read built-in command
8.2.2. Prompting for user input
8.2.3. Redirection and file descriptors
8.2.4. File input and output
8.3. Summary
8.4. Exercises

In this chapter we will discuss how to interact with the users of our scripts:

  • Printing user friendly messages and explanations

  • Catching user input

  • Prompting for user input

  • Using the file descriptors to read from and write to multiple files

Hosting by: Hurra Communications Ltd.
Generated: 2007-01-26 17:57:32