Mastering UNIX Shell Scripting by Randy Michael
This Wiley Publishing tome is big (more than 650 pages), useful and very complete. Be warned, however, that its scope is limited to system administration. The purpose of the book is to solve “real world...problems for those who have to automate these often complex and repetitive tasks”. Little information is directly employable for end-user tasks, such as printing booklets, mirroring Web sites or searching through e-mail.
The author has a lot of experience with shell scripting, and it shows. The scripts to solve each problem are well written and discussed line by line. For each, a preamble gives the big picture or introduces some command that is used in the rest of the chapter.
Anyone interested in scripting for maximum portability or ease of maintenance can learn a lot from this book. Everything needed to use the same script with Linux and all varieties of UNIX is present: Linux, Solaris, AIX and HP-UX have one subsection each.
The first chapter is a quick tutorial of shell scripting and a summary of all the techniques discussed later. The second one goes head first into deep scripting mode, setting the pace for the whole book. It offers 12 different ways to read a file line by line, including benchmarks to find the fastest one.
The most arcane shell commands and options are explained with plenty of examples. “Here” documents, a way to feed input to a script or command within the script itself, are explained thoroughly. Readers learn more than they could imagine about traps, typeset, getopts and other techniques for managing command-line arguments.
System monitoring receives the most coverage: several chapters explain how to detect and report problems in processes, disk space, memory and CPU usage.
Other important administration activities have their own sections. The author moves with ease from system snapshots to print queues, automated FTP and building sudo from source. Several methods to add menus and progress bars to shell scripts are explained. Floating-point math, number conversion and generation of random passwords and numbers also are covered. The volume ends with 45 pages devoted to sending pop-up messages from UNIX to Microsoft OSes. All scripts are available for download at the Wiley Web site area devoted to the book.
Articles about Digital Rights and more at http://stop.zona-m.net CV, talks and bio at http://mfioretti.com
|PasswordPing Ltd.'s Exposed Password and Credentials API Service||Apr 28, 2017|
|Graph Any Data with Cacti!||Apr 27, 2017|
|Be Kind, Buffer!||Apr 26, 2017|
|Preparing Data for Machine Learning||Apr 25, 2017|
|openHAB||Apr 24, 2017|
|Omesh Tickoo and Ravi Iyer's Making Sense of Sensors (Apress)||Apr 21, 2017|
- Graph Any Data with Cacti!
- Teradici's Cloud Access Platform: "Plug & Play" Cloud for the Enterprise
- The Weather Outside Is Frightful (Or Is It?)
- Simple Server Hardening
- Understanding Firewalld in Multi-Zone Configurations
- Gordon H. Williams' Making Things Smart (Maker Media, Inc.)
- IGEL Universal Desktop Converter
- Server Technology's HDOT Alt-Phase Switched POPS PDU
- From vs. to + for Microsoft and Linux