|
|
1-800-THE-TREE (1-800-843-8733)
|
|
|
 |
|
Shell Programming: Hands-OnShell Scripting Using Bash and KornShell
Course: 434
Type: Hands-On Training
Duration: 3 Days
You Will Learn How To
- Write Bash and KornShell scripts for improved productivity
- Integrate all key language features: arrays, functions, pattern matching, I/O, branches, loops and variables
- Improve speed by performing multifile handling and string manipulations without external tools
- Launch and control additional processes
- Wrap external file and text handling tools within scripts
- Customize and extend the user environment login scripts
Course Benefits KornShell (ksh) and Bash have evolved into full-featured programming languages with efficient built-in modern constructs for superior string handling, decision making, arithmetic and post-processing. This hands-on course provides the skills you need to write reusable, robust shell scripts to extend the user environment and automate complex administrative tasks.Who Should Attend Administrators, developers and other professionals using shell programming for improved productivity. Knowledge of UNIX or Linux at the level of Course 428, "UNIX Comprehensive Introduction," or Course 143, "Linux Comprehensive Introduction," is assumed.Hands-On Training Throughout this course, you write a series of Bash or KornShell scripts that build in complexity as you master each new construct. Instructor-led exercises include:
- Creating loops and making decisions using case, while and if
- Performing text processing tasks using IFS and read
- Breaking a large program into functions
- Handling errors with default values
- Handling unexpected events with trap
- Manipulating multiple files
Course 434 Content
- Role of shell scripting
- Benefits of KornShell and bash vs. other shells
- Differences and similarities between bash, ksh88 and ksh93
- Integrating scripts with external tools: grep, sed, awk and others
- Customizing the login environment
- Commands and comments
- Defining exit values
- Applying if and case statements
- Simplifying if logic with elif
- Conditional looping with while and until
- Listing for loops
- Analyzing attributes
- Checking file size and contents
- Comparing strings
- Verifying the existence of a string
- Pattern matching and special characters
- Redirecting standard error
- set commands for debugging
- Passing and accessing parameters
- Setting and unsetting parameters
- Manipulating parameters as groups
- Defining environment and local variables
- Specifying default values and error conditions
- Creating and indexing arrays
- Processing array contents with special variables
- Extracting substrings
- Determining string length
- Find and replace
- Arithmetic for and while loops
- Writing mathematical expressions: (( )), $(( )) and let
- Functions vs. scripts
- Parameters and variables
- Finding your library with PATH
- dot . commands
- Scripting file and directory management
- Deciphering redirection order
- Unraveling the secrets of exec: opening and closing multiple files
- Handling errors
- Defining post-termination actions such as notification, cleanup
- Handling and sending signals: trap and kill
- Connecting to a network server
- Exchanging data with a network server
- Checking and modifying environment variables
- Using getopts to process command line options
- Setting up error processing
- Employing select to create a menu interface
- Processing keyboard input
|
Related Courses
UNIX is a registered trademark of X/Open Company, Limited. Linux is a registered trademark of Linus Torvalds.
|
|
|
|
 |
|
|