Title Statements
- Full title :bash Idioms / by Carl Albing and JP Vossen.
Summary
Shell scripts are everywhere, especially those written in bash-compatible syntax. But these scripts can be complex and obscure. Complexity is the enemy of security, but it's also the enemy of readability and understanding. With this practical book, you'll learn how to decipher old bash code and write new code that's as clear and readable as possible. Authors Carl Albing and JP Vossen show you how to use the power and flexibility of the shell to your advantage. You may know enough bash to get by, but this book will take your skills from manageable to magnificent. Whether you use Linux, Unix, Windows, or a Mac, you'll learn how to read and write scripts like an expert. Your future you will thank you. You'll explore the clear idioms to use and obscure ones to avoid, so that you can: Write useful, flexible, and readable bash code with style Decode bash code such as ${MAKEMELC,,} and ${PATHNAME##*/} Save time and ensure consistency when automating tasks Discover how bash idioms can make your code clean and concise.
Read More ↓Edition Statements
- Publication Date:2022.
- Edition:First edition
Publication Statements
- Publisher(s):O'Reilly Media, Inc
- Place of Publication:Sebastopol, Ca
- Language:eng
- Publication Date:2022.
Notes
Includes index.
The Physical Object
- Description:1 online resource (167 pages)
Edition Identifiers
- oclc:on1304905330
- LC Classification:QA76.76.O63
- Dewey Decimal:005.43
Table of Contents
Cover -- Copyright -- Table of Contents -- Preface -- Running bash -- bash on Mac -- bash in Containers -- Revision Control -- Hello World -- Conventions Used in This Book -- Using Code Examples -- O'Reilly Online Learning -- How to Contact Us -- Acknowledgments -- bash -- Reviewers -- O'Reilly -- From Carl -- From JP -- Chapter 1. A Big "if" Idiom -- The Big "if" -- Or ELSE... -- More than One -- More than One Again -- Don't Do This -- Style and Readability: Recap -- Chapter 2. Looping Lingo -- Looping Constructs -- Explicit Values -- Similar to Python -- Quotes and Spaces
Developing and Testing for Loops -- while and until -- Style and Readability: Recap -- Chapter 3. Just in CASE -- Make Your Case -- A Realistic Use Case -- Motivation -- Our Script -- Wrapper Scripts -- One More Twist -- Style and Readability: Recap -- Chapter 4. Variable Vernacular -- Variable Reference -- Parameter Expansion -- Shorthand for basename -- Path or Prefix Removal -- Shorthand for dirname or Suffix Removal -- Other Modifiers -- Conditional Substitutions -- Default Values -- Comma-Separated Lists -- Modified Value -- RANDOM -- Command Substitution -- Style and Readability: Recap
Chapter 5. Expres…
Subjects
Writers
No reviews yet. Be the first to rate this work.
Files & Downloads
-
bash Idioms: Write Powerful, Flexible, Readable S…
EPUB · 296.0 KB · updated -
bash Idioms: Write Powerful, Flexible, Readable S…
EPUB · 1.6 MB · updated -
bash Idioms: Write Powerful, Flexible, Readable S…
EPUB · 1.7 MB · updated -
bash Idioms: Write Powerful, Flexible, Readable S…
EPUB · 2.6 MB · updated -
bash Idioms: Write Powerful, Flexible, Readable S…
PDF · 3.7 MB · updated -
bash Idioms: Write Powerful, Flexible, Readable S…
PDF · 9.5 MB · updated -
Идиомы bash: мощные, гибкие и понятные сценарии к…
PDF · 5.0 MB · updated -
Идиомы bash мощные, гибкие и понятные сценарии ко…
PDF · 5.0 MB · updated
Rate & Review