BN.com Gift Guide

Pro Bash Programming: Scripting the Linux Shell [NOOK Book]

Overview

The bash shell is a complete programming language, not merely a glue to combine external Linux commands. By taking full advantage of shell internals, shell programs can perform as snappily as utilities written in C or other compiled languages. And you will see how, without assuming Unix lore, you can write professional bash 4.0 programs through standard programming ...

See more details below
Pro Bash Programming: Scripting the Linux Shell

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$20.99
BN.com price
(Save 25%)$27.99 List Price

Overview

The bash shell is a complete programming language, not merely a glue to combine external Linux commands. By taking full advantage of shell internals, shell programs can perform as snappily as utilities written in C or other compiled languages. And you will see how, without assuming Unix lore, you can write professional bash 4.0 programs through standard programming techniques.

  • Complete bash coverage
  • Teaches bash as a programming language
  • Helps you master bash 4.0 features
What you’ll learn
  • Use the shell to write new utilities and accomplish most programming tasks.
  • Use shell parameter expansion to replace many external commands, making scripts very fast.
  • Learn to avoid many common mistakes that cause scripts to fail.
  • Learn how bash’s readline and history libraries can save typing when getting user input.
  • Learn to use features new to bash 4.0.
  • Build shell scripts that get information from the Web.
Who this book is for

Beginning Linux and Unix system administrators who want to be in full command of their systems.

Table of Contents
  1. Hello, World! Your First Shell Program
  2. Input, Output, and Throughput
  3. Looping and Branching
  4. Command-Line Parsing and Expansion
  5. Parameters and Variables
  6. Shell Functions
  7. String Manipulation
  8. File Operations and Commands
  9. Reserved Words and Builtin Commands
  10. Writing Bug-Free Scripts and Debugging the Rest
  11. Programming for the Command Line
  12. Runtime Configuration
  13. Data Processing
  14. Scripting the Screen
  15. Entry-Level Programming
Read More Show Less

Product Details

  • ISBN-13: 9781430219989
  • Publisher: Apress
  • Publication date: 10/18/2009
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 350
  • Sales rank: 614,033
  • File size: 791 KB

Meet the Author

Chris F.A. Johnson was introduced to Unix in 1990 and learned shell scripting because there was no C compiler on the system. His first major project was a menu-driven, user-extensible database system with report generator. Chris uses the shell as his primary, general-purpose programming language, and his projects have included a member database, menuing system, and POP3 mail filtering and retrieval. Chris is the author of Shell Scripting Recipes: A Problem-Solution Approach (Apress, 2005). When not pushing shell scripting to the limit, he designs and codes web sites, teaches chess, and composes cryptic crosswords.
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
Sort by: Showing 1 Customer Reviews
  • Anonymous

    Posted December 29, 2011

    Good reference - but non-linear

    This has served as a decent reference for learning or reinforcing shell scripting knowledge with the BASH shell. Early sections can help a new scripter start writing some useful scripts quickly, but the reader must be prepared to put a bit of work into getting the most from the book. The book sometimes pushes several tools/features/parameters into a small section that does help a new script writing become quickly acquainted with built-in commands and usage, but requires them to spend a bit of extra time in each chapter to do some "on your own" work to really understand and gain full benefit of the knowledge contained. However, for many this would not be a detractor, as practice is the best means of retention and understanding in this type of activity.

    Some of the forward references can cause confusion, where example scripts include code snippets or commands that are not explained until later in the text. In cases where the commands are fairly intuitive this is not a problem. However, there are some cases where the examples include some not-so-intuitive BASH variable parameter modifiers that require forward-referencing in the text to really understand the example.

    I would recommend this book as a reference, and as with any topic of this type would also recommend supplementing it with other references such as relevant man pages or online examples.

    1 out of 1 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing 1 Customer Reviews

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