27.08.2015 Views

Advanced Bash−Scripting Guide

Advanced Bash-Scripting Guide - Nicku.org

Advanced Bash-Scripting Guide - Nicku.org

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Advanced</strong> <strong>Bash−Scripting</strong> <strong>Guide</strong><br />

Table of Contents<br />

Chapter 24. Aliases.........................................................................................................................................286<br />

Chapter 25. List Constructs...........................................................................................................................289<br />

Chapter 26. Arrays.........................................................................................................................................292<br />

Chapter 27. Files.............................................................................................................................................310<br />

Chapter 28. /dev and /proc.............................................................................................................................311<br />

28.1. /dev..............................................................................................................................................311<br />

28.2. /proc............................................................................................................................................311<br />

Chapter 29. Of Zeros and Nulls.....................................................................................................................316<br />

Chapter 30. Debugging...................................................................................................................................319<br />

Chapter 31. Options........................................................................................................................................325<br />

Chapter 32. Gotchas.......................................................................................................................................327<br />

Chapter 33. Scripting With Style..................................................................................................................333<br />

33.1. Unofficial Shell Scripting Stylesheet..........................................................................................333<br />

Chapter 34. Miscellany...................................................................................................................................336<br />

34.1. Interactive and non−interactive shells and scripts......................................................................336<br />

34.2. Shell Wrappers............................................................................................................................337<br />

34.3. Tests and Comparisons: Alternatives..........................................................................................340<br />

34.4. Recursion....................................................................................................................................341<br />

34.5. "Colorizing" Scripts....................................................................................................................342<br />

34.6. Optimizations..............................................................................................................................346<br />

34.7. Assorted Tips..............................................................................................................................347<br />

34.8. Security Issues............................................................................................................................354<br />

34.9. Portability Issues.........................................................................................................................354<br />

34.10. Shell Scripting Under Windows...............................................................................................354<br />

Chapter 35. Bash, version 2...........................................................................................................................355<br />

Chapter 36. Endnotes.....................................................................................................................................360<br />

36.1. Author's Note..............................................................................................................................360<br />

36.2. About the Author........................................................................................................................360<br />

36.3. Tools Used to Produce This Book..............................................................................................360<br />

36.3.1. Hardware...........................................................................................................................360<br />

36.3.2. Software and Printware.....................................................................................................360<br />

36.4. Credits.........................................................................................................................................361<br />

Bibliography....................................................................................................................................................363<br />

iii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!