ADVANCED BASH SCRIPTING GUIDE
0
komentar
Download free Advanced Bash Scripting Guide pdf. A working knowledge of shell scripting is essential to anyone wishing to become reasonably proficient at system administration, even if they do not anticipate ever having to actually write a script. Consider that as a Linux machine boots up, it executes the shell scripts in /etc/rc.d to restore the system configuration and set up services. A detailed understanding of these startup scripts is important for analyzing the behavior of a system, and possibly modifying it.
Table of contents Advanced Bash Scripting Guide
Table of contents Advanced Bash Scripting Guide
- Shell Programming
- Starting Off With a Sha-Bang
Invoking the script ~ Preliminary Exercises ~ Basics - Special Characters
- Introduction to Variables and Parameters
Variable Subtitution ~ Variable Assigment ~ Bash Variables Are Untyped ~ Special Variable Types - Quoting
Quoting Variable ~ Escaping - Exit and Exit Status
- Tests
7.1. Test Constructs ~ File test operators ~ Other Comparison Operators ~ Nested if/then Condition Tests ~ Testing Your Knowledge of Tests - Operations and Related Topics
Operators ~ Numerical Constants - Beyond the Basics
- Variables Revisited
Internal Variable ~ Manipulating Strings ~ anipulating strings using awk ~ Further Reference ~ Parameter Substitution ~ Typing variables: declare or typeset ~ Another use for declare ~ Indirect R114 $RANDOM: generate random integer ~ The Double-Parentheses Construct - Loops and Branches
Loops ~ Nested Loops ~ Loop Control ~ Testing and Branching - Command Substitution
- Arithmetic Expansion
- Recess Time
- Commands
- Internal Commands and Builtins
Job Control Commands - External Filters, Programs and Commands
Basic Commands ~ Complex Commands ~ Time / Date Commands ~ Text Processing Commands ~ File and Archiving Commands ~ Communications Commands ~ Terminal Control Commands ~ Math Commands ~ Miscellaneous Commands - System and Administrative Commands
Analyzing a System Script ~ Advanced Topics - Regular Expressions
A Brief Introduction to Regular Expressions ~ Globbing - Here Documents
- I/O Redirection
Complex Functions and Function Complexities ~ Local Variables ~ Local variables and recursion ~ Recursion Without Local Variables - Aliases
- List Constructs
- Arrays
- /dev and /proc
- Of Zeros and Nulls
- Debugging
- Options
- Gotchas
- Scripting With Style
Unofficial Shell Scripting Stylesheet - Miscellany
Interactive and non-interactive shells and scripts ~ Operator Precedence ~ Shell Wrappers ~ Tests and Comparisons: Alternatives ~ script calling itself (recursion) ~ "Colorizing" Scripts ~ Optimization ~ Assorted Tips ~ Ideas for more powerful scripts ~ Widgets ~ Security Issues ~ Infected Shell Scripts ~ Hiding Shell Script Source ~ Writing Secure Shell Scripts ~ Portability Issues ~ Shell Scripting Under Windows - Scripting With Style
Unofficial Shell Scripting Stylesheet - Miscellany
Interactive and non-interactive shells and scripts ~ Operator Precedence ~ Shell Wrappers ~ Tests and Comparisons: Alternatives ~ A script calling itself (recursion) ~ "Colorizing" Scripts ~ Optimization ~ Assorted Tips ~ Ideas for more powerful scripts ~ Widgets ~ Security Issues ~ Infected Shell Scripts ~ Hiding Shell Script Source ~ Writing Secure Shell Scripts ~ Portability Issues ~ Shell Scripting Under Windows - Bash, versions 2, 3, and 4
- Endnotes
- Bibliography
- Appendix A. Contributed Scripts
- Appendix B. Reference Cards
- Appendix C. A Sed and Awk Micro-Primer
- Appendix D. Exit Codes With Special Meanings
- Appendix E. A Detailed Introduction to I/O and I/O Redirection
- Appendix F. Command-Line Options
- Appendix G. Important Files
- Appendix H. Important System Directories
- Appendix J. History Commands
- Appendix K. A Sample .bashrc File
- Appendix L. Converting DOS Batch Files to Shell Scripts
- Appendix M. Exercises
0 komentar:
Post a Comment