Saturday, February 7, 2009

Shell Scripting Primer


Click here to download : Shell Scripting Primer

Shell Scripting Primer
Open Source Scripting & Automation

Contents
Introduction 
Chapter  Shell Script Basics
Chapter  Result Codes, Subroutines, Scoping, and Sourcing
Chaining Execution
Chapter  Paint by Numbers
Chapter  How AWK-ward
Chapter  Designing Scripts for Cross-Platform Deployment
Chapter  Advanced Techniques
Chapter  Performance Tuning
Appendix A Other Tools and Information
Appendix B An Extreme Example: The Monte Carlo (Bourne) Method for Pi
Table - Special shell variables
Table - Cursor and scrolling manipulation escape sequences
Table - Attribute escape sequences
Table - Color escape sequences
Table - Other escape codes
Listing - A simple one-second timing loop
Listing - Installing a signal handler trap
Listing - Ignoring a signal
Listing - ipc.sh: Script interprocess communication example, part  of 
Listing - ipc.sh: Script interprocess communication example, part  of 
Listing - Columnar printing using printf
Listing - Truncating text to column width
Listing - Obtaining terminal size using stty or tput
Listing - Using ANSI color
Listing - Setting tab stops
Chapter  Performance Tuning
Table - Performance (in seconds) impact of duplicating common code to avoid redundant
tests
Table - Performance (in seconds) comparisons of  executions of various control
statement sequences
Table - Performance (in seconds) of  iterations, performing each computation once
or twice
Table - Relative performance (in seconds) of  iterations of the echo builtin and the
echo command
Table - Relative performance (in seconds) of  iterations of shell math, expr, and bc
Table - Relative performance (in seconds) of different use cases for sed
Listing - A binary search version of the Bourne shell ord function

0 comments:

Post a Comment