Wicked Cool Shell Scripts 2nd Ed
Wicked Cool Shell Scripts 2nd Ed

Author: Dave Taylor & Brandon Perry
Publisher: No Starch Press
Date: November 2016
Pages: 392
ISBN: 978-1593276027
Print: 1593276028
Audience: Anyone administering UNIX or Linux machines
Rating: 5
Reviewer: Kay Ewbank

This is the latest edition of a book of shell scripts for UNIX and Linux, with a very practical approach and lots of usable scripts for customization. The authors say they're fun too, and it is an enjoyable read.

As some readers of the book won't have written scripts before, the book starts with a Shell Scripts crash course on the syntax of bash scripts and how to use them. However, this is very much a book aimed at 'this is how to do task xx', rather than 'learn to program using shell scripts'. The scripts do start off relatively simple and get more complex, and as a programmer you do learn about the power bash has to offer, but you wouldn't want to learn to program using either bash or this book. 

Banner

The scripts are all followed by a paragraph explaining what the clever bit of it is, but again, this is more about showing how to achieve a result rather than teaching you what a particular command does. That's not a criticism; this is a book showing how to do clever stuff using bash, and it's very good at that. The descriptions also cover how you could 'hack' the script to suit your own specific needs.

Once through the crash course, a useful chapter titled 'the missing code library' is next, which looks at tools and techniques to make it easier to work with shell scripts in the absence of the libraries you get with most programming environments.

The main body of the book is a set of chapters covering things you might want to automate using scripts - starting with managing local users and managing web users. There are scripts for tasks such as disk usage analysis, emailing users who are over their quota, a crosstab validator and a script for extracting URLs from web pages.

 

wickedscripts

 

Two chapters of scripts are dedicated to administering internet-facing servers, with scripts including how to identify broken web links, and analyzing aspects of a web server traffic log.

A chapter on OS X specifically is next, which Taylor describes as hiding complete UNIX behind the pretty interface; you get the distinct feeling he'd ditch the pretty bit given half a chance! Gems in this chapter include a screen capture tool, scripts to interact with iTunes, and to change the Terminal window titles.

Working with the cloud is new in this edition, with scripts for working with services such as iCloud, Dropbox and Google Drive. There's a chapter on ImageMagik and working with graphics files showing how to do things such as frame and watermark images. A final chapter covers working with days and dates, with scripts for tasks such as finding out how far apart two dates are, or what day a date fell on.

The book closes with a chapter on installing bash on Windows 10, in response to Microsoft's decision to release a full bash system for Windows 10 this year.

Overall, this is 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.

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin.

Banner


Access 2013 Inside Out

Author: Jeff Conrad
Publisher: Microsoft Press
Pages: 817
ISBN: 978-0735671232
Aimed at: Access developers working with web apps
Rating: 3.5
Reviewed by: Kay Ewbank

This book isn't as comprehensive as its title suggests, which comes as a something of a shock.



Pro Oracle SQL

Authors: Karen Morton, Kerry Osborne, Robyn Sands, Riyaj Shamsudeen, Jared Stil
Publisher: Apress
Pages: 580
ISBN: 978-1430262206
Aimed at: Oracle developers
Rating: 5
Reviewed by: Kay Ewbank


If you need to write SQL code for Oracle, this book should be on your bookshelf. This is the second edition of Pr [ ... ]


More Reviews

Related Reviews

Shell Programming in UNIX, Linux and OS-X 4th Edition

Last Updated ( Tuesday, 20 December 2016 )
 
 

   
Banner
RSS feed of book reviews only
I Programmer Book Reviews
RSS feed of all content
I Programmer Book Reviews
Copyright © 2017 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.