Writing interactive scripts

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


10 visits (1 today, 2 this week, 10 this month, 10 this year)
Uptime: 13:27:02 up 1 day, 19:53, 0 users, load average: 0.00, 0.00, 0.00
44.212.50.220 GET from server z.lam1.us

Thursday, March 28, 2024 @ 1:27:02 PM
z.ServerAdmin@lam1.us