Unix Shell Scripting For DBAs
Unix Shell Scripting For DBAs
1
• Listing Jobs
• Stopping current Job
• Running jobs in background
• Running jobs in foreground
• Waiting for Jobs
• Killing Jobs
7. Metacharacters
8. Filename Substitution
• The Asterisk
• The Question Mark
• The Squared Brackets
• Escaping metal Characters
• Tilde and Hyphen Expansion
• New KSH Metal Characters
9. Variables
• Local Variables
• Setting and Referencing Local Variables
• The Scope of Local Variables
• Setting Read-Only Variables
• Environment Variables
• Setting Environment
• Special Environment Variables
• Listing Set Variables
• Unsetting Variables
• Printing the Values of Variables
• Escape Sequences
• Variable Expressions
• Variable Expansion
• Variable Attributes : The typeset Command
• Positional Parameters
• Other Special Variables
10. Quoting
• The Backslash
• The single Quotes
• The Double Quotes
11. Command Substitution
12. Standard I/O and redirection
• Redirection and the Child Shell
2
13. Pipes
• The Here Document and Redirecting Input
14. Timing Commands
• The time Command
• The TMOUT variable
• The sleep Command
3
• The case command
• The case command and the here document
20. The Looping Command
• The for command
• The $* and $@ Variable and wordlists
• The while Command
• The until Command
• The select command and Menus
• The looping control structures
• The shift Command
• The break Command
• the continue Command
• Nesting Loops and Loop Control
• I/O redirection and Loops
• The exec Command and Loops
• The IFS and Loops
21. Functions
• Defining Functions
• Listing and Unsetting Functions
• Local Variables and Return Value
• Exported Functions
• Function options and the typeset command
22. Trapping Signals
• Pseudo or Fake Signals
• Resetting Signals
• Ignoring Signals
• Listing Traps
• Traps and Functions
23. Debugging Korn Shell Scripts
• -n debug option
• -x debug option
• -v debug option
24. Parsing Command Line Arguments
• Processing Command Line Options with getopts
25. Special Utilities
• cut utility
• sed utility
• awk utility
4
• tr utility
Recommended Books:
1. Anatole Olczak: The Korn Shell (Unix and Linux Program Manual)
(ISBN ISBN-10: 0201675234 , ISBN-13: 978-0201675238)
2. Jon Emmons and Donald K. Burleson: Oracle Shell Scripting, Linux and Unix
Programming for Oracle(ISBN 0977671550)
Contact Information:
Pacific Systems, Inc.
903 Pavilion Court Suite I
McDonough, GA 30253
1-877-405-4554