views:

219

answers:

7

Please recommend a good book to start with the shell scripting and then going ahead to have in depth and precise knowledge of shell scripting.

A: 

Classic Shell Scripting

+1  A: 

This is bash-specific, but bash is not uncommon ...

The MYYN
A: 

Learning the Bash Shell is a great introduction. It contains really useful scripting knowledge.

abyx
A: 

I would recommend, type it in your console (in Terminal programm):

info bash

It has a lot of interesting things and examples inside and it has very gentle introduction. There you can navigate using Return on lines prefixed with *, Backspace to go to a previous page.

psihodelia
+3  A: 

Beginning Shell Scripting (Programmer to Programmer)

alt text

System administrators need libraries of solutions that are ingenious but understandable. They don’t want to reinvent the wheel, but they don’t want to reinvent filesystem management either! Expert Shell Scripting is the ultimate resource for all working Linux, Unix, and OS X system administrators who would like to have short, succinct, and powerful shell implementations of tricky system scripting tasks.

  • Automating small to medium system management tasks
  • Analyzing system data and editing configuration files
  • Scripting Linux, Unix, and OS X applications using bash, ksh, et al.


Linux Shell Scripting with Bash

alt text

According to IDC, over 170,000 new servers were shipped in the first quarter of 2003. That also means that there were potentially more than 170,000 people like you charged with administering these systems without the proper knowledge or training to do so. Linux Shell Scripting with Bash will help you learn to not only get your system up and running quickly by employing the Bash shell, but it will also show you professional scripting solutions through the use of structured programming and standard Linux development tools. The book focuses on the Linux environment, which the shell relies on to function, and the robust Linux tool set, making this book ideal for learning shell scripting. Real-world scripts are included that are readable, extendable and easy to debug. This book is an asset to any Linux user.


Beginning Portable Shell Scripting: From Novice to Professional (Expert's Voice in Open Source)

alt text

Portable shell scripting is today the future of modern Linux, OS X, and Unix command–line access. Beginning Portable Shell Scripting: From Novice to Professional teaches shell scripting by using the common core of most shells and expands those principles to all of scripting.

You will learn about portable scripting and how to use the same syntax and design principles for all shells. You’ll discover about the interaction between shells and other scripting languages like Ruby and Python, and everything you learn will be shown in context for Linux, OS X, bash, and AppleScript. What you’ll learn

This book will prime you on not just shell scripting, but also the modern context of portable shell scripting. You will learn

  • The core Linux/OS X shell constructs from a portability point of view
  • How to write scripts that write other scripts, and how to write macros and debug them
  • How to write and design shell script portably from the ground up
  • How to use programmable utilities and their inherent portability to your advantage, while pinpointing potential traps
  • Pulling everything together, how to engineer scripts that play well with Python and Ruby, and even run on embedded systems


Shell Scripting Recipes: A Problem-Solution Approach (Expert's Voice in Open Source)

alt text

In today’s IT environment, harried system administrators are finding themselves more overworked than ever. This book helps them regain some of the lost time spent creating and testing shell scripts, and guides readers through more than 150 much-needed and practical real-world examples.

Because all scripts found in this book are POSIX (Portable Operating System Interface)-compliant, they are supported by all major shell variants, including Bash, Zsh and sh, among others. File conversion, system administration, and resource monitoring are just a few of the topics covered in this highly practical shell scripting reference.


Wicked Cool Shell Scripts

alt text

Fun and functional Linux, Mac OS X and UNIX shell scripts The UNIX shell is the main scripting environment of every Linux, Mac OS X and UNIX system, whether a rescued laptop or a million-dollar mainframe. This cookbook of useful, customizable, and fun scripts gives you the tools to solve common Linux, Mac OS X and UNIX problems and personalize your computing environment. Among the more than 100 scripts included are an interactive calculator, a spell checker, a disk backup utility, a weather tracker, and a web logfile analysis tool. The book also teaches you how to write your own sophisticated shell scripts by explaining the syntax and techniques used to build each example scripts. Examples are written in Bourne Shell (sh) syntax.


Mastering UNIX Shell Scripting

alt text

  • Provides readers with end-to-end shell scripts that can be used to automate repetitive tasks and solve real-world system administration problems
  • Targets the specific command structure for four popular UNIX systems: Solaris, Linux, AIX, and HP-UX
  • Illustrates dozens of example tasks, presenting the proper command syntax and analyzing the performance gain or loss using various control structure techniques
  • Web site includes all the shell scripts used in the book


Expert Shell Scripting (Expert's Voice in Open Source)

alt text

System administrators need libraries of solutions that are ingenious but understandable. They don’t want to reinvent the wheel, but they don’t want to reinvent filesystem management either! Expert Shell Scripting is the ultimate resource for all working Linux, Unix, and OS X system administrators who would like to have short, succinct, and powerful shell implementations of tricky system scripting tasks.

  • Automating small to medium system management tasks
  • Analyzing system data and editing configuration files
  • Scripting Linux, Unix, and OS X applications using bash, ksh, et al.
SjB
He asked for a recommendation, not an amazon search :P
abyx
I recommend gigapedia search
SjB
A: 

One good book I found is Mastering Shell Scripting by Randal K Michael

Sachin Chourasiya
A: 

Mastering Unix Shell Scripting is a good book on Shell Scripting.

Rachel