Vous voulez voir cette page en français ? Cliquez ici.

Have one to sell? Sell yours here
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Linux Shells by Example [Paperback]

Ellie Quigley
4.6 out of 5 stars  See all reviews (5 customer reviews)

Available from these sellers.


Save Up to 90% on Textbooks
Hit the books in Amazon.ca's Textbook Store and save up to 90% on used textbooks and 35% on new textbooks. Learn more.
There is a newer edition of this item:
UNIX Shells by Example (4th Edition) UNIX Shells by Example (4th Edition) 4.1 out of 5 stars (14)
CDN$ 39.68
Usually ships in 2 to 5 weeks
Join Amazon Student in Canada


Book Description

May 30 2000 0130147117 978-0130147110 1
Learn Linux shell programming hands-on! By Ellie Quigley, author of the #1 bestseller UNIX Shells by Example.
One book covers both shells and utilities- bash, tcsh, grep, sed, gawk, and more.
Hundreds of classroom-proven examples throughout!
CD-ROM contains all the source code and data files used in the book -- an outstanding resource. Full of classroom-proven examples from Silicon Valleys top shell programming instructor, Linux Shells by Example starts with the basics and carries you all the way to expert-level techniques. Start by discovering what Linux shells are, what they do, and how they integrate with other LINUX utilities and processes. Next, master creating, running, and debugging shell scripts; using grep, sed, and gawk, and much more. This edition contains especially detailed and valuable coverage of Gawk, including pattern scanning, text filtering, reporting, and many other key applications. Youll review the Bourne Again (bash) and TC (tcsh) shells in depth, discovering how they compare, and when to use each. The book contains hands-on exercises for every topic, an appendix with detailed syntax listings, examples of many useful Linux utilities, comparison charts, and all the books code on CD-ROM -- an awesome resource. For everyone who wants to learn shell programming with Linux, including system administrators, application developers, Web professionals, and power users.
Ellie Quigley is author of Perl by Example and UNIX Shells by Example, Second Edition, and creator of the worlds #1 interactive Perl course, Perl Multimedia Cyber Classroom. A leading instructor and trainer, her courses in Perl and UNIX shell programming at the University of California Santa Cruz Extension Program and at Sun Microsystems have become legendary throughout Silicon Valley.

Special Offers and Product Promotions

  • Join Amazon Student in Canada


Customers Who Bought This Item Also Bought


Product Details


Product Description

From Amazon

In both Linux and Unix, becoming proficient at using shell scripts is an essential skill for both programmers and administrators. Filled with numerous exercises and examples, Ellie Quigley's Linux Shells by Example provides a comprehensive tutorial to two of the most popular Linux shells: the Bourne Again shell (bash) and the TC shell (tcsh). For any Linux user, this title is all you need to bring your shell-programming skills up to speed.

This book opens with a tour of the history and function of traditional Unix shells (from Bourne, C, and Korn shells) before centering on Linux variants, bash and tcsh. The text then turns to three powerful utilities: grep (for file searching), sed (for noninteractive file editing), and gawk (which allows programmers to write powerful scripts that process files using regular expressions).

There are dozens of sample commands to try out here. (With shell programming, the genius is truly in the details, and the only way to learn the shell is to try it out for yourself.) As an experienced teacher, the author provides a wealth of examples that take you through both the common and more esoteric features of these utilities. Instead of hard-to-decipher man pages, there she includes dozens of sample commands with correct syntax, plus clear explanations.

The rest of this book looks at the bash and tcsh shells in detail, from interactive mode to shell programming with full coverage of the basics of writing reusable scripts. Final sections of Linux Shells by Example look at common Linux file and system commands for easy reference, and the book ends with a useful appendix on quoting styles for five different shells. In all, this book's clear presentation style and plentiful examples will help any Linux user become a competent shell user and script programmer. --Richard Dragan

Topics covered: Survey of Unix shells (the Bourne, C, and Korn shells), survey of Linux shells (the Bourne Again and TC shells), processes, shell environments, tutorial for regular expressions, grep for file searches, the streamlined editor (sed), awk/nawk/gawk scripts, gawk basics and expressions, gawk programming (variables, arrays, flow control, built-in and user-defined functions), the bash and tcsh shells (interactive mode, programming tutorial for shell scripts), reference to common Linux/Unix utilities, comparison of shells, and tips for using correct quoting styles within shells.

From the Inside Flap

Preface

Playing the "shell" game has been a lot of fun with UNIX, and now with Linux as well. After publishing my previous book, UNIX Shells by Example, Mark Taub (the Prentice Hall acquisitions editor who keeps me writing books) suggested I write a Linux shells book. We both thought it would be "a piece of cake," or at least I did. After all, there shouldn't be much difference between the Bourne and Bourne Again shells, or between C and TC shells; Maybe just a few neat new figures, right? Wrong! This project was like writing a brand new book from scratch.

Although there are many similarities, the UNIX and Gnu tools and shells offer a plethora of new extensions and features. Linux offers not only the Gnu tools, but also a number of fully functional shells. Since I had already covered the Korn shell in detail in UNIX Shells by Example, I decided to concentrate on the two most popular Linux shells-Bourne Again shell (bash) and TC shell (tcsh).

Due to all the new features, enhancements, built-ins, etc., the shell chapters had to be split up, or they would have become unwieldy. What in the previous book consisted of two chapters has now become four. It was a lengthy, tedious process and when I had just about completed the bash chapter, I realized I was not using the most up-to-date version, so back to the drawing board I went. Since all of you will not necessarily be using the same version of bash, I have tailored this book to cover the old and the new versions.

The first section of this book presents the Gnu tools you will need to write successful shell programs-gawk, grep, and sed. These are the ideal tools for pattern matching, manipulating, text editing, and extracting data from pipes and files.

When learning about the shell, it is presented first as an interactive program where everything can be accomplished at the command line, and then as a programming language where the programming constructs are described and demonstrated in shell scripts.

Having always found that simple examples are easier for quick comprehension, each concept is captured in a small example, followed by the output and an explanation of each line of the program. This method has proven to be very popular with those who learned Perl programming from my first book, Perl by Example, and then shell programming from UNIX Shells by Example. Linux Shells by Example should get you up to speed quickly and before you know it, you will be able to read, write, and maintain shell programs.

The shells are presented in parallel so that if, for example, you want to know how redirection is performed in one shell, there is a parallel discussion of that topic in each of the other shell chapters, and for quick comparison there is a chart in Appendix B of this book.

It is a nuisance to have to go to another book or the Linux man page when all you want is enough information about a particular command to jog your memory on how the command works. To save you time, Appendix A contains a list of useful commands, their syntax, and a definition. Examples and explanations are provided for the more robust and often-used commands.

The comparison chart in Appendix B will help you keep the different shells straight, especially when you port scripts from one shell to another, and as a quick syntax check when all that you need is a reminder of how the construct works. It compares Korn, Borne, Bash, Tcsh, and C shells.

One of the biggest hurdles for shell programmers is using quotes properly. The section on quoting rules in Appendix C presents a step-by-step process for successful quoting in some of the most complex command lines. This procedure has dramatically reduced the amount of time programmers waste when debugging scripts with futile attempts at matching quotes properly.

I think you'll find this book a valuable tutorial and reference. The objective is to explain through example and keep things simple so that you have fun learning and same time. I am confident that you will be a productive shell programmer in a short amount of time. Everything you need is right here at your fingertips. Playing the Linux shell game is fun. You'll see!Ellie Quigley
ellieq


Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Reviews

3 star
0
2 star
0
1 star
0
4.6 out of 5 stars
4.6 out of 5 stars
Most helpful customer reviews
5.0 out of 5 stars Useful script writing skills!! Dec 25 2000
By M. Sale
Format:Paperback
I love the explanations of scripts in here... there are so many books that either give you a finished script or the same thing you find in the man pages... this book guides you to understanding the scripts that you write.
The format of "Example" followed by "Explanation" lets you understand exactly what is going on.
Skills developed cross over to other OSs like Solaris and HP with some minor differences.
For those who come to me with hopes of walking onto a customer site and understanding their admin scripts this is the tutorial I suggest.
I would have titled this book a marketing unfriendly "Scripting with grep, awk and sed on the Linux shells."
For all that... I would like to have seen really cool practical uses for activities like monitoring system performance, backup and recovery and interacting with applications programs (like Oracle's sqlplus and svrmgrl). That said, you can take the principles learned and easily apply them to these areas.
Also makes a nice reference with some stick-ums.
Was this review helpful to you?
4.0 out of 5 stars This book will make your life easier June 13 2001
Format:Paperback
I found this book very easy to understand, but if you are looking for something more advance, this is not for you. The style of writing in this book is very easy to follow. Like what is written on the title, it has lots of examples, and an explanation always comes after the example. It is not only about shell, this book also has good basic knowledge and information about grep, sed, and awk. If you use Linux, and want to learn shell programming, get this book. I also found that the examples used in this book were very close to the real life problems we often meet in Linux.
The only reason that I rate only 4 stars for this book is because some similar part gets repeated too often in this book.
Was this review helpful to you?
5.0 out of 5 stars Excellent Book Dec 7 2001
Format:Paperback
I just started this book but have thumbed through all the chapters. The author is a very good writer and seems to be passionate about the subject unlike some of the authors that write dry tombs for O'Reilly. However, "Unix Power Tools", O'Reilly is not a dry tomb.
Anyway, better know your way around linux before you get this book even though it starts very basic. This is a huge book, 761 pages. Great info...
Was this review helpful to you?
By A Customer
Format:Paperback
I just bought this book, and can't put it down. I have been working with Linux for several years, and find there is still a lot to know. This is a very useful book and reference already. It covers several topics from basic introductions to in-depth teachings. Great explanations of examples as well.
Was this review helpful to you?
5.0 out of 5 stars Don't think twice, just get it. Jan. 30 2002
Format:Paperback
New to 'nix? You need to learn the shell to become comfortable and proficient with the OS. There is no better book for the serious beginner/intermediate self-motivated learner. Ellie Quigley is a superb instructor and writer.
Was this review helpful to you?
Want to see more reviews on this item?
Search Customer Reviews
Only search this product's reviews

Look for similar items by category


Feedback