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
|Happy Birthday Linux||Aug 25, 2016|
|ContainerCon Vendors Offer Flexible Solutions for Managing All Your New Micro-VMs||Aug 24, 2016|
|Updates from LinuxCon and ContainerCon, Toronto, August 2016||Aug 23, 2016|
|NVMe over Fabrics Support Coming to the Linux 4.8 Kernel||Aug 22, 2016|
|What I Wish I’d Known When I Was an Embedded Linux Newbie||Aug 18, 2016|
|Pandas||Aug 17, 2016|
- Happy Birthday Linux
- Download "Linux Management with Red Hat Satellite: Measuring Business Impact and ROI"
- ContainerCon Vendors Offer Flexible Solutions for Managing All Your New Micro-VMs
- What I Wish I’d Known When I Was an Embedded Linux Newbie
- Updates from LinuxCon and ContainerCon, Toronto, August 2016
- New Version of GParted
- NVMe over Fabrics Support Coming to the Linux 4.8 Kernel
- All about printf
- Tor 0.2.8.6 Is Released
- Tech Tip: Really Simple HTTP Server with Python
With all the industry talk about the benefits of Linux on Power and all the performance advantages offered by its open architecture, you may be considering a move in that direction. If you are thinking about analytics, big data and cloud computing, you would be right to evaluate Power. The idea of using commodity x86 hardware and replacing it every three years is an outdated cost model. It doesn’t consider the total cost of ownership, and it doesn’t consider the advantage of real processing power, high-availability and multithreading like a demon.
This ebook takes a look at some of the practical applications of the Linux on Power platform and ways you might bring all the performance power of this open architecture to bear for your organization. There are no smoke and mirrors here—just hard, cold, empirical evidence provided by independent sources. I also consider some innovative ways Linux on Power will be used in the future.Get the Guide