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
|PostgreSQL, the NoSQL Database||Jan 29, 2015|
|HPC Cluster Grant Accepting Applications!||Jan 28, 2015|
|Sharing Admin Privileges for Many Hosts Securely||Jan 28, 2015|
|Red Hat Enterprise Linux 7.1 beta available on IBM Power Platform||Jan 23, 2015|
|Designing with Linux||Jan 22, 2015|
|Wondershaper—QOS in a Pinch||Jan 21, 2015|
- PostgreSQL, the NoSQL Database
- Sharing Admin Privileges for Many Hosts Securely
- HPC Cluster Grant Accepting Applications!
- Internet of Things Blows Away CES, and it May Be Hunting for YOU Next
- Designing with Linux
- Wondershaper—QOS in a Pinch
- Ideal Backups with zbackup
- Red Hat Enterprise Linux 7.1 beta available on IBM Power Platform
- January 2015 Issue of Linux Journal: Security
- Slow System? iotop Is Your Friend
Editorial Advisory Panel
Thank you to our 2014 Editorial Advisors!
- Jeff Parent
- Brad Baillio
- Nick Baronian
- Steve Case
- Chadalavada Kalyana
- Caleb Cullen
- Keir Davis
- Michael Eager
- Nick Faltys
- Dennis Frey
- Philip Jacob
- Jay Kruizenga
- Steve Marquez
- Dave McAllister
- Craig Oda
- Mike Roberts
- Chris Stark
- Patrick Swartz
- David Lynch
- Alicia Gibb
- Thomas Quinlan
- Carson McDonald
- Kristen Shoemaker
- Charnell Luchich
- James Walker
- Victor Gregorio
- Hari Boukis
- Brian Conner
- David Lane