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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Part 4. <strong>Advanced</strong> Topics<br />

At this point, we are ready to delve into certain of the difficult and unusual aspects of scripting. Along the<br />

way, we will attempt to "push the envelope" in various ways and examine boundary conditions (what happens<br />

when we move into uncharted territory?).<br />

Table of Contents<br />

19. Regular Expressions<br />

19.1. A Brief Introduction to Regular Expressions<br />

19.2. Globbing<br />

20. Subshells<br />

21. Restricted Shells<br />

22. Process Substitution<br />

23. Functions<br />

23.1. Complex Functions and Function Complexities<br />

23.2. Local Variables<br />

24. Aliases<br />

25. List Constructs<br />

26. Arrays<br />

27. Files<br />

28. /dev and /proc<br />

28.1. /dev<br />

28.2. /proc<br />

29. Of Zeros and Nulls<br />

30. Debugging<br />

31. Options<br />

32. Gotchas<br />

33. Scripting With Style<br />

33.1. Unofficial Shell Scripting Stylesheet<br />

34. Miscellany<br />

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

34.2. Shell Wrappers<br />

34.3. Tests and Comparisons: Alternatives<br />

34.4. Recursion<br />

34.5. "Colorizing" Scripts<br />

34.6. Optimizations<br />

34.7. Assorted Tips<br />

34.8. Security Issues<br />

34.9. Portability Issues<br />

34.10. Shell Scripting Under Windows<br />

35. Bash, version 2<br />

Part 4. <strong>Advanced</strong> Topics 261

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

Saved successfully!

Ooh no, something went wrong!