Wicked Cool Shell Scripts, 2nd Edition

Wicked Cool Shell Scripts, 2nd Edition

101 Scripts for Linux, OS X, and UNIX Systems
by Dave Taylor and Brandon Perry
October 2016, 400 pp.
ISBN-13: 
978-1-59327-602-7

“Whether you're a seasoned sysadmin or a rank beginner, you're likely to find a lot of scripts in this book that will save you some serious time and effort, teach you something, and allow you to show off your scripting and systems administration skills.”
Computerworld

One of Opensource.com's "Hot open source books" of 2016!

Shell scripts are an efficient way to interact with your machine and manage your files and system operations. With just a few lines of code, your computer will do exactly what you want it to do. But you can also use shell scripts for many other essential (and not-so-essential) tasks.

This second edition of Wicked Cool Shell Scripts offers a collection of useful, customizable, and fun shell scripts for solving common problems and personalizing your computing environment. Each chapter contains ready-to-use scripts and explanations of how they work, why you’d want to use them, and suggestions for changing and expanding them. You’ll find a mix of classic favorites, like a disk backup utility that keeps your files safe when your system crashes, a password manager, a weather tracker, and several games, as well as 23 brand-new scripts, including:

  • A ZIP code lookup tool that reports the city and state
  • A Bitcoin address information retriever
  • A suite of tools for working with cloud services like Dropbox and iCloud
  • Tools for renaming and applying commands to files in bulk
  • Image processing and editing tools

Whether you want to save time managing your system or just find new ways to goof off, these scripts are wicked cool!

Readers are free to re-use code from Wicked Cool Shell Scripts, 2nd Edition under the MIT license: https://opensource.org/licenses/MIT

Author Bio 

Dave Taylor has been in the computer industry since 1980. He was a contributor to BSD 4.4 UNIX, and his software is included in all major UNIX distributions. He is an award-winning public speaker and has written thousands of magazine and newspaper articles. He is the author of 20 books, including Learning UNIX for Mac OS X (O'Reilly), Solaris for Dummies (Hungry Minds), and Teach Yourself UNIX in 24 Hours (SAMS). A popular columnist for Linux Journal magazine, he also maintains a customer tech support website at askdavetaylor.com.

Brandon Perry started writing C# applications with the advent of the open source .NET implementation called Mono. In his free time, he enjoys writing modules for the Metasploit framework, parsing binary files, and fuzzing things.

Table of contents 

Chapter 1: The Missing Code Library
Chapter 2: Improving on User Commands
Chapter 3: Creating Utilities
Chapter 4: Tweaking Unix
Chapter 5: System Administration: Managing Users
Chapter 6: System Administration: System Maintenance
Chapter 7: Web and Internet Users
Chapter 8: Webmaster Hacks
Chapter 9: Web and Internet Administration
Chapter 10: Internet Server Administration
Chapter 11: OS X Scripts
Chapter 12: Shell Script Fun and Games
Chapter 13: Working with the Cloud
Chapter 14: ImageMagick and Working with Graphics Files
Chapter 15: Days and Dates

Appendix A: Installing Bash on Windows 10
Appendix B: Bonus Scripts

View the detailed Table of Contents (PDF)
View the Index (PDF)

Reviews 

Dave Taylor shares how to use bash scripting to make an interactive calculator on Opensource.com

“This new edition covers a lot of important ground and is well worth that special spot you've on your bookshelf for the book that you need to be able to reach without standing up. This is one of those books you are likely to make very good use of in your Unix work life.”
Computerworld

“An excellent book if you want some ideas and inspiration on what's made possible by writing bash scripts. There are some really interesting techniques, and the book is fun to read.”
I Programmer

“Whether users want to save time managing their systems or just find new ways to goof off, these scripts are just the ticket.”
Linux Journal

“If you’re just getting to grips with Bash scripting, following these examples will give you a great insight into how it all works.”
Network Security Newsletter

"My current day job has a variety of CLI tools written in Bash, Perl and Python. Previous to reading this book I wasn’t confident in modifying the old Bash scripts and would rewrite them in Perl or Python. Now I have more confidence and understanding."
Paul Baccas

“If you want to get more out of using the command line (on pretty much any UNIX like OS) this could be the book for you.”
euro tech news

Updates 

View the latest errata.