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


128 visits (2 today, 3 this week, 55 this month, 128 this year)
Uptime: 08:20:25 up 12 days, 14:03, 5 users, load average: 0.00, 0.00, 0.00
3.145.44.46 GET from server z.lam1.us

Monday, December 30, 2024 @ 8:20:25 AM
z.ServerAdmin@lam1.us