In weniger als einer Minute können Sie mit dem Lesen von Pro Bash Programming: Scripting the Linux Shell auf Ihrem Kindle beginnen. Sie haben noch keinen Kindle? Hier kaufen oder mit einer unserer kostenlosen Kindle Lese-Apps sofort zu lesen anfangen.

An Ihren Kindle oder ein anderes Gerät senden


Kostenlos testen

Jetzt kostenlos reinlesen

An Ihren Kindle oder ein anderes Gerät senden

Der Artikel ist in folgender Variante leider nicht verfügbar
Keine Abbildung vorhanden für
Keine Abbildung vorhanden


Pro Bash Programming: Scripting the Linux Shell (Expert's Voice in Linux) [Kindle Edition]

Chris Johnson

Kindle-Preis: EUR 20,21 Inkl. MwSt. und kostenloser drahtloser Lieferung über Amazon Whispernet

Kostenlose Kindle-Leseanwendung Jeder kann Kindle Bücher lesen  selbst ohne ein Kindle-Gerät  mit der KOSTENFREIEN Kindle App für Smartphones, Tablets und Computer.

Geben Sie Ihre E-Mail-Adresse oder Mobiltelefonnummer ein, um die kostenfreie App zu beziehen.

Weitere Ausgaben

Amazon-Preis Neu ab Gebraucht ab
Kindle Edition EUR 20,21  
Taschenbuch EUR 26,95  



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 the new bash 4.0 features.
  • Build shell scripts that get information from the Web.

About the Apress Pro Series

The Apress Pro series books are practical, professional tutorials to keep you on and moving up the professional ladder.

You have gotten the job, now you need to hone your skills in these tough competitive times. The Apress Pro series expands your skills and expertise in exactly the areas you need. Master the content of a Pro book, and you will always be able to get the job done in a professional development project. Written by experts in their field, Pro series books from Apress give you the hard–won solutions to problems you will face in your professional programming career.

Über den Autor

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.


  • Format: Kindle Edition
  • Dateigröße: 6454 KB
  • Seitenzahl der Print-Ausgabe: 350 Seiten
  • Verlag: Apress; Auflage: 1 (19. Oktober 2009)
  • Verkauf durch: Amazon Media EU S.à r.l.
  • Sprache: Englisch
  • ASIN: B003U890YQ
  • Text-to-Speech (Vorlesemodus): Aktiviert
  • X-Ray:
  • Word Wise: Nicht aktiviert
  • Amazon Bestseller-Rang: #251.622 Bezahlt in Kindle-Shop (Siehe Top 100 Bezahlt in Kindle-Shop)

  •  Ist der Verkauf dieses Produkts für Sie nicht akzeptabel?

Mehr über den Autor

Entdecken Sie Bücher, lesen Sie über Autoren und mehr

Welche anderen Artikel kaufen Kunden, nachdem sie diesen Artikel angesehen haben?


Es gibt noch keine Kundenrezensionen auf
5 Sterne
4 Sterne
3 Sterne
2 Sterne
1 Sterne
Die hilfreichsten Kundenrezensionen auf (beta) 3.8 von 5 Sternen  14 Rezensionen
12 von 13 Kunden fanden die folgende Rezension hilfreich
5.0 von 5 Sternen A Good Guide Through the Mysteries of Bash Programming 9. Februar 2010
Von Neil G. Matthews - Veröffentlicht auf
Considering the critical role Bash has in the installation and operation of Linux distributions and thereby its ubiquity, Bash as a programming language is frequently overlooked by programmers. The author of Pro Bash Programming has done a creditable job in providing the wherewithal for everyone from beginners to expert shell programmers to write more powerful and efficient scripts using Bash, as he takes you through a fast paced coverage of bash's capabilities. Along the way, many useful, well explained and commented practical scripts are provided, many of which can be used to build and test your own scripts. The author claims that while he used to use C when he needed extra speed, that was several years ago and he now does everything in the shell. This book shows how.

The 230 page book is divided into the 15 chapters below, with each chapter ending with a summary of the commands covered and some well chosen exercises.

1 Hello, World! Your first Shell Program
- how to create and run a script and establish good scripting habits
2 Input, Output and Throughput
- echo, printf, read and IO streams
3 Looping and Branching
- tests, conditional execution, looping constructs
4 Command-Line Parsing and Expansion
- quoting, brace, tilde, parameter, variable arithmetic and pathname expansion, command and process substitution, word splitting and parsing with getops
5 Parameters and Variables
- variable scope (essential reading), positional parameters and expansion using patterns, arrays - indexed and associative
6 Shell Functions
- how to define, use and set exit codes, use of compound commands, creation and use of function libraries
7 String Manipulation
- concatenation, processing character by character, case conversion, inserting, overlaying and trimming strings
8 File Operations and Commands
- reading, use of external commands, regular expressions with grep, sed and awk, file name expansion options
9 Reserved Words and Builtin Commands
- good coverage of builtin commands, particularly read (including into arrays) plus a very informative section on how to use builtin commands correctly
10 Writing Bug-Free Scripts and Debugging the Rest
- good scripting programming recommendations for bug free code plus a test and debug example
11 Programming for the Command Line
- manipulating the directory stack, filesystem and miscellaneous functions, managing man pages, games!
12 Runtime Configuration
- command line options and arguments, menus, configuration files, scripts with several names, using environment variables
13 Data Processing
- sorting and searching arrays, various ways of reading arrays into memory, grids (string and two dimensional), data file formats
14 Scripting the Screen
- using the screen as a blackboard or canvas, rendition modes and colours, text scrolling - rolling dice example
15 Entry-Level Programming
- single key entry, use of author's key-funcs library, sanity checking, form entry, reading the mouse!

Appendix: Shell Variables
- alphabetic listing of (1) variables set by bash and (2) variables used by bash

One of the strengths of this book is that the author explains the fastest way to accomplish many standard programming tasks through the appropriate choice of one of the many different bash methods available, including the choice between builtin bash commands and external commands. I found chapter 9 particularly interesting here. Chapter 7 shows how effective bash is at string manipulation with the right techniques - amazing! While the book covers bash 4.0 and often uses non POSIX extensions, those unable to use bash 4.0 or constrained to POSIX compliant code are not forgotten, with the author providing alternatives that work within these constraints.

Where a subject is introduced in an early chapter and expanded on later, the author thoughtfully provides the forward reference. Source code for the included scripts is available from the publisher's webpage for this book at [...]

The 10 page index works reasonably well, but you may find it worthwhile grabbing the companion eBook so you can directly search through the book to make the best use of it as a reference source. If you buy the dead tree version, the eBook is available on-line for $10 until April 2010 direct from the publisher.

I can recommend this book to anyone that can benefit from automating repetitive shell based tasks in Linux but isn't sure how best to go about it. The included scripts and wealth of tips on how to avoid common bash coding problems will provide you with a quick return on your investment.

Neil Matthews
10 von 11 Kunden fanden die folgende Rezension hilfreich
5.0 von 5 Sternen A word from the technical reviewer 2. August 2011
Von Edward L. Schaefer - Veröffentlicht auf
Format:Taschenbuch|Verifizierter Kauf
Full disclosure: I was the technical reviewer for this book, and I admit my opinion may be biased. However, I was a just technical mercenary hired by the publisher so there is no financial benefit to me if the book does well or not.

Is author Chris F. A. Johnson pushing an agenda? You bet he is and that is a good thing. His agenda isn't hidden; he succinctly states it in the introduction:

"While most shell programs do call external utilities, a lot of programming can be done entirely in the shell. Many scripts call just one or two utilities for information that is used later in the script. Some scripts are little more than wrappers for other commands such as awk, grep, or sed. This book is about programming in the shell itself. There's a sprinkling of the second type, where the script gets information (such as the current date and time) and then processes it. The third type gets barely more than a cursory nod."

Resist the urge to call awk, grep, sed, perl or another Linux tool first; this book teaches the Bash shell's prgramming capabilities. Why call an external program when the shell can do the work for you?

Should this be your first Bash programming book? Not if you require lots of syntactic hand holding. But if a motivated and clever beginner masters the first 10 chapters of this book, that beginner is on their way to becoming an expert. You will learn how to create functions, deal with files, parse strings, etc - correctly!

There might also be something here for the expert. I've been creating *nix shell scripts for a long time, and I admit to being set in my programming ways. After reviewing this book, I changed the way I now parse and manipulate strings.
9 von 10 Kunden fanden die folgende Rezension hilfreich
5.0 von 5 Sternen Not just for beginners 29. Juni 2011
Von Jared Still - Veröffentlicht auf
I have been looking to update my Kochan and Wood, as it is a bit dated (Hayden Books, 1990).

Over the past couple years I have considered both for sale published works and free online sources for an updated book on shell programming, as Bash has introduced so many new features in the past years.

Though the description states that beginners can use this book, it does progress quickly into more advanced topics.

The positive reviews here and the general excellent quality of Apress books led me to buy this, and I was not disappointed.

In addition to detailing shell features and showing how to use them, Johnson has done something that is not frequently done - he has shown *why* I might want to use a feature.

Chapter 6 for example has excellent explanations of Parameter expansion. Wondering why I might want to use ${VAR:+Alternate} Johnson shows how it is useful. In this case I was able to immediately use it in a script that was being developed, simplifying it greatly.

Kudos for a job well done.
5 von 5 Kunden fanden die folgende Rezension hilfreich
4.0 von 5 Sternen A well organized and quick look at bash programming 17. April 2012
Von Amazon Customer - Veröffentlicht auf
Format:Taschenbuch|Verifizierter Kauf
My boss at work handed me a 1200 page book that they offered on BASH training and it was so bloated that I couldn't make it past the first chapter without falling asleep, and half way through I had forgotten what I learned in the first part. And I tried looking on the web for instruction but everyone on the web seems to just give you a quick rundown of the most basic BASH stuff, which is great once you know enough to do some damage, but as a beginner I couldn't get a grasp on why BASH acts the way it does and how to use that to my advantage.

Until I read this book. Once I had this and was even half way through I got a clear understanding of how to utilize BASH and a lot of it's more powerful features. It's informative, but not bloated. It's basic and it's advanced in a way that is not confusing or intimidating. And the examples are practical and flow nicely from what you need to get started to what you need to iterate over a config file and read in params. And it even teaches you a bunch of useful BASH commands, most that I was aware of after working in BASH for 4 years, some I had never heard of, and even better I learned new ways to utilize old favorites. And to boot this book does have tasks that are relevant at the end of each chapter which is usually where I get the most value from reading something.

I guess my only semi-complaint about the book was that sometimes the author would use code that he hadn't used before or commands he didn't explain to make an example. He named things very clearly so it was easy to tell what was going on, but it was slightly annoying when I had to read ahead or go on the internet the 5 or so times it happened. Otherwise, I couldn't really figure out a command or technique that was being used.

Overall, pretty great. Would and have recommended this book to co-workers and friends.
5 von 5 Kunden fanden die folgende Rezension hilfreich
5.0 von 5 Sternen Saved the day 29. Oktober 2011
Von Theodore R. Smith - Veröffentlicht auf
Format:Kindle Edition|Verifizierter Kauf
This book taught me bash better than any other guide I've ever encountered (including everything online) and single-handedly gave me what I needed to complete a commercial project: a complete website deployment app and a fully automatic SQL change management synchronizer.
Waren diese Rezensionen hilfreich?   Wir wollen von Ihnen hören.

Kunden diskutieren

Das Forum zu diesem Produkt
Diskussion Antworten Jüngster Beitrag
Noch keine Diskussionen

Fragen stellen, Meinungen austauschen, Einblicke gewinnen
Neue Diskussion starten
Erster Beitrag:
Eingabe des Log-ins

Kundendiskussionen durchsuchen
Alle Amazon-Diskussionen durchsuchen

Ähnliche Artikel finden