Linux Shells by Example

Overview

The complete guide to bash and tsch—PLUS grep, sed, and gawk!

  • Learn Linux shell programming hands-on!
  • Hundreds of classroom-proven examples throughout
  • gawk in-depth! Pattern scanning, text filtering, reporting, and more
  • By best-selling author Ellie Quigley, Silicon ...
See more details below
Available through our Marketplace sellers.
Other sellers (Other Format)
  • All (11) from $2.17   
  • Used (11) from $2.17   
Close
Sort by
Page 1 of 2
Showing 1 – 10 of 11 (2 pages)
Note: Marketplace items are not eligible for any BN.com coupons and promotions
$2.17
Seller since 2009

Feedback rating:

(7264)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

Good
Minimal damage to cover and binding. Pages show light use.With pride from Motor City. All books guaranteed. Best Service, Best Prices.

Ships from: Brownstown, MI

Usually ships in 1-2 business days

  • Canadian
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$2.17
Seller since 2014

Feedback rating:

(2241)

Condition: Good
Book has some visible wear on the binding, cover, pages.Biggest little used bookstore in the world.

Ships from: Reno, NV

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$16.99
Seller since 2014

Feedback rating:

(27)

Condition: Good
Buy with Confidence. Excellent Customer Support. We ship from multiple US locations. No CD, DVD or Access Code Included.

Ships from: Fort Mill, SC

Usually ships in 1-2 business days

  • Standard, 48 States
$20.00
Seller since 2009

Feedback rating:

(10586)

Condition: Acceptable
A tradition of southern quality and service. All books guaranteed at the Atlanta Book Company. Our mailers are 100% recyclable.

Ships from: Atlanta, GA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$31.00
Seller since 2008

Feedback rating:

(202)

Condition: Good
Cover Art N. J. 2000 Soft Cover 2nd Good Paper. 8vo-over 7?"-9?" tall. The soft cover has light shelf wear with a small soiled taped tear to the front edge....PRICE INCLUDES ... ADDITIONAL MEDIA MAIL S&H IN THE US ONLY............Check out our books on tape.........We are very careful when we list our books, but sometimes something minor may get by. Read more Show Less

Ships from: Danville, VA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$32.33
Seller since 2014

Feedback rating:

(227)

Condition: Good
Possible retired library copy, some have markings or writing.

Ships from: Chatham, NJ

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$59.95
Seller since 2008

Feedback rating:

(40)

Condition: Good
Sealed CD included. Light soiling present on page edges. Good+ condition. Light to moderate shelf wear, creasing on covers. Tight binding. (Y41)

Ships from: El Cerrito, CA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$59.95
Seller since 2007

Feedback rating:

(41)

Condition: Good
2000 Soft Cover Good+ 0130147117 Sealed CD included. Light soiling present on page edges. Good+ condition. Light to moderate shelf wear, creasing on covers. Tight binding. (Y41)

Ships from: Vallejo, CA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$70.88
Seller since 2013

Feedback rating:

(53)

Condition: Like New
PAPERBACK Fine 0130147117 Purchase Protected By Our Satisfaction Guarantee.

Ships from: Fort Wayne, IN

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$130.84
Seller since 2014

Feedback rating:

(227)

Condition: Very Good
Very good.

Ships from: Chatham, NJ

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
Page 1 of 2
Showing 1 – 10 of 11 (2 pages)
Close
Sort by
Sending request ...

Overview

The complete guide to bash and tsch—PLUS grep, sed, and gawk!

  • Learn Linux shell programming hands-on!
  • Hundreds of classroom-proven examples throughout
  • gawk in-depth! Pattern scanning, text filtering, reporting, and more
  • By best-selling author Ellie Quigley, Silicon Valley's #1 shell programming instructor!

CD-ROM: All source code and data files used in the book.

Learn Linux shell programming hands-on!

One book is all you need to learn Linux shell programming! Linux Shells by Example is your complete, step-by-step guide to both essential Linux shells-bash and tcsh—and three essential Linux shell programming utilities, grep, sed and gawk. Ellie Quigley—Silicon Valley's top shell programming instructor—starts from scratch and gets you all the way to expert-level techniques! Through hundreds of classroom-proven examples, you'll learn what Linux shells are, what they do, and exactly how they integrate with other Linux utilities and processes. Master creating, running, and debugging shell scripts using grep, sed, gawk, and a whole lot more.

  • bash and tcsh: how they compare, and when to use each
  • gawk in depth: pattern scanning, text filtering, reporting, and other key applications
  • Includes hands-on exercises for every topic
  • Detailed syntax listings, comparison charts, essential information on Linux utilities, and more

Whether you're a system administrator, application developer or power user, Linux Shells by Example is the most convenient, cost-effective way to learn Linux shell programming!

CD-ROM INCLUDED

CD-ROM contains all of the sourcecode and datafiles from the book.

Read More Show Less

Editorial Reviews

Booknews
A tutorial to two Linux shells (bash and tcsh) and three shell programming utilities (grep, sed, and gawk). Each concept is captured is captured in a small concept, followed by the output and an explanation of each line of the program. The CD-ROM contains all of the source code and datafiles that are in the book. Annotation c. Book News, Inc., Portland, OR (booknews.com)
Read More Show Less

Product Details

  • ISBN-13: 9780130147110
  • Publisher: Pearson Education
  • Publication date: 5/30/2000
  • Series: Prentice Hall Open Source Technology Series
  • Edition description: BK&CD ROM
  • Pages: 761
  • Product dimensions: 7.03 (w) x 9.20 (h) x 2.10 (d)

Read an Excerpt

PREFACE:

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
www.ellieq.com

Read More Show Less

Table of Contents

1. Introduction to Linux Shells.
Why Linux? Definition and Function of a Shell. System Startup and the Login Shell. Processes and the Shell. The Environment and Inheritance. Executing Commands from Scripts.

2. The Linux Tool Box.
Regular Expressions. Combining Regular Expression Metacharacters.

3. The grep Family (Gnu & Sons).
The grep Command. Extended grep (grep -E or egrep). Fixed grep (grep -F and fgrep). Recursive grep (rgrep). grep with Pipes. grep with Options. Linux Tools Lab.

4. The Streamlined Editor.
What Is sed? Versions of sed. How Does sed Work? Addressing. Commands and Options. Error Messages and Exit Status. sed Examples. sed Scripting. Linux Tools Lab.

5. The gawk Utility: gawk as a Linux Tool.
What's awk? What's nawk? What's gawk? awk's Format. Formatting Output. awk Commands from within a File. Records and Fields. Patterns and Actions. Regular Expressions. awk Commands in a Script File. Review. Linux Tools Lab.

6. The gawk Utility: Evaluating Expressions.
Comparison Expressions. Review. Linux Tools Lab.

7. The gawk Utility: gawk Programming.
Variables. Redirection and Pipes. Pipes. Closing Files and Pipes. Review. Linux Tools Lab. Conditional Statements. Loops. Program Control Statements. Arrays. awk Built-In Functions. User-Defined Functions. Review. Linux Tools Lab. Odds and Ends. Review. Linux Tools Lab.

8. The Interactive Bash Shell.
Introduction. Command Line Shortcuts. Variables. The Bourne Shell Lab Exercises.

9. Programming with the Bash Shell.
Introduction. Reading User Input. Arithmetic. PositionalParameters and Command Line Arguments. Conditional Constructs and Flow Control. Looping Commands. Functions. Trapping Signals. Debugging. Processing Command Line Options with getopts. The eval Command and Parsing the Command Line. Bash Options. Shell Built-In Commands. The Bash Shell Lab Exercises.

10. The Interactive TC Shell.
Introduction. The TC Shell Environment. Command Line Shortcuts. Job Control. Metacharacters. Redirection and Pipes. Variables. Arrays. Special Variables and Modifiers. Command Substitution. Quoting. Built-In Commands. The TC Shell Lab Exercises.

11. Programming with the TC Shell.
Steps in Creating a Shell Script. Reading User Input. Arithmetic. Debugging Scripts. Command Line Arguments. Flow Control and Conditional Constructs. Loops. Interrupt Handling. setuid Scripts. Storing Scripts. Built-In Commands. The TC Shell Lab Exercises.

Appendix A: Useful Linux/UNIX Utilities for Shell Programmers.
Appendix B: Comparison of the Shells.
tcsh versus csh. bash versus sh.

Appendix C: Steps for Using Quoting Correctly.
Index.
Read More Show Less

Preface

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, andextracting 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
www.ellieq.com

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)