Bash Idioms: Write Powerful, Flexible, Readable Shell Scripts

Albing, Carl, Vossen, Jp

  • 出版商: O'Reilly
  • 出版日期: 2022-04-19
  • 售價: $1,700
  • 貴賓價: 9.5$1,615
  • 語言: 英文
  • 頁數: 167
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1492094757
  • ISBN-13: 9781492094753
  • 相關分類: Command Line
  • 立即出貨



Shell scripts are everywhere, especially those written in bash compatible syntax, and it's extremely useful to be able to understand and write them, but they 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. Your future you will thank you.

Authors Carl Albing and JP Vossen show you how to use the power and flexibility of the shell to your advantage. You'll learn how to read and write scripts like an expert, 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
  • Amaze and impress colleagues with bash idioms
  • Discover how bash idioms can make your code clean and concise


Carl Albing is a professor, researcher, and software engineer with a breadth of industry experience. A co-author of O'Reilly's bash Cookbook, and Cybersecurity Ops with bash, as well as the author of O'Reilly's Great bash video, Carl has worked in software (using bash and many other languages) for companies large and small, across a variety of industries. He has a B.A. in Mathematics, a Masters in International Management (M.I.M.), and a Ph.D. in Computer Science.

JP Vossen has been working with computers since the early 80s and has been in the IT industry since the early 90s, specializing in Information Security since the late 90s. He's been fascinated with scripting and automation since he first understood what an autoexec.bat was, and was delighted to discover the power and flexibility of bash and GNU on Linux in the mid-90s. He has previously written for Information Security Magazine and, among others. On those few occasions when he's not in front of a computer, he is usually taking something apart, putting something together, or both.