nixCraft Poll

Topics

Book Review Shell Script Pearls

Posted by Vivek Gite [Last updated: September 3, 2007]

Shell Script Pearls is designed to provide information about shell scripting. The book is collection with all tips and code sample you need to learn about shell scripting. Author has clearly demonstrated unique tools and script samples that go beyond the level of basic scripting. The book is useful for geeks, hackers, sys admin and advanced users. The book doesn’t explain basic programming structure and syntax. If you are the beginner get some basic book or start with our own tutorial.

You will find lots of useful collection of a shell scripts and practical examples that can be used in day today life.

Chapter 1: Shell script Debugging - You learn about manual and automated shell scripting debug techniques.

Book Review: Shell Script Pearls

Chapter 2: Standard Functions Library - You will learn how to create a library for common task.

Chapter 3: Date and time Manipulation - Many administrative tasks such as backup heavily depends upon date and time. This chapter explains date and time calculations.

Chapter 4: Comparison and tests - Learn how to write and use the comparison and test using conditional statements and loops.

Chapter 5: Accepting Command Line Options and Parameters - Learn how to pass optional parameters to you script to provide more customization.

Chapter 6: Testing Variables and Assigning Defaults – Learn about setting default variables or input parameters for a script. This will help you write customized and configurable shell script.

Chapter 7: Indirect Reference Variables - Learn how create indirect variable names (ability to generate variable names on fly)

Chapter 8: Shell process tree - You will learn about creating a shell process tree script for the currently running or all process.

Chapter 9: Data Redirection - If you get confused with output redirection or I/O redirection, this chapter provides the better understanding about redirection.

Chapter 10: Piping Input to read - Learn about pipes and related gotcha that came across while writing a portable script.

Chapter 11: Math from the shell - Learn how to use expr, bc and other tools to perform mathematical calculations from a shell.

Chapter 12: Cron - Learn how to create complex cron jobs and schedule jobs.
Chapter 13: Self-Linked Scripts - This is one my favorite technique – for example a shell script called backup can be called in several different names to make a backup to ftp server, tape or another server.

Chapter 14: Throttling Parallel Processes - Learn how to run a shell script more efficiently in large multi-user environments.

Chapter 15: Command Line Editing and History - Learn how to set various command line editing mode to save time.

Chapter 16: Scripting from the command line - Learn how to write quick and dirty one liners from a command prompt.

Chapter 17: Automating User Input with expect - Learn how to provide password / username and other parameters using expect tool.

Chapter 18: User Input Timeout - Learn how to write more advanced scripts. If the user doesn’t provide input in a specified time the script should continue running with a default input.

Chapter 19: Instant keyboard Response – Learn how to write a key press detection shell script. For example detect keys pressed by end user and take an action.

Chapter 20: Directory Copying - Learn how to copy all sort of files using various tools.

Chapter 21 and 22: A brief tour of the X Display environment – Learn basic usage of X windows system.

Chapter 23: Command line email attachments – Learn how to send emails from a command line.

Chapter 24: Text processing one – liners: Learn basic usage of common tools such as awk, expr, sed and many others.

Chapter 25: Editing Files in Place – Learn how to use ed to edit text file and perform search and replace operations.

Chapter 26 to 42 provides advanced code examples and techniques such as:

Summery

You will find shell man pages difficult to use and w/ examples. Ron has done good job explaining and providing valuable shell script code. You can use samples in your own projects. I recommend this book for every Linux / UNIX geek and System Administrator.

Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

You may also be interested in other helpful articles:

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , ,

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.