Korn Shell and Bash Shell Programming
Details
Prerequisites: Familiarity with UNIX file system and commands. Students who are not familiar with UNIX file system and commands should register for the course UNIX/Linux Fundamentals.
Outline
- Comparing Popular Shells
- Korn Shell Compatibility for Bash
- Korn and Bash Shell Advantages
- Korn and Bash Shell Disadvantages
- Versions of ksh and bash
- Shell Command Syntax
- Comments
- Continuing a Command on Multiple Lines
- Special Characters
- Pattern Matching
- Complex Pattern Combinations
- Tilde Expansion
- Process Priority
- Background Jobs
- Signals
- Traps
- DEBUG and EXIT
- ksh Co-Processing
- bash Co-Processing
- Pausing
- Time and Date
- Scheduling Execution
- Run Commands Later
- Aliases
- How the Shell Finds Commands
- Command History and Editing
- Shell Programming Language
- Reserved Words
- How to Write and Run Scripts
- Debugging
- Data Types
- Using Variables
- The typeset Command
- Constants
- Special Predefined Variables
- Printing to the Screen (echo, print)
- The printf Command
- Accepting Input with ksh
- Accepting Input with bash
- Arithmetic Operators
- Floating-Point Numbers
- Bitwise Operators
- Grouping Operations
- Binary, Octal, and Hexadecimal
- Indexed Arrays
- Quoting
- Command Substitution
- Command Line Options
- The set command
- Parents and Children
- Inheritance
- Exporting
- Dot Scripts
- Startup Scripts
- Environment Variables
- Setting Prompts in ksh and bash
- Conditional Expressions
- Testing Strings
- Testing Options
- Numeric Conditions
- Testing Completion Status
- Truth in Korn and Bash Shells
- The case Statement
- Loops: while and until
- The for Loop
- Menus and the select Statement
- Redirection and Loops
- When to Use Different Constructs
- Redirection Review
- Opening Additional Streams
- Redirection Operators
- Inheriting and Duplicating Streams
- Caution with exec
- here Documents
- String Comparison
- String Relations
- Concatenation
- Substring Manipulations
- Wildcards and Pattern Matching
- Process Ownership
- suid and sgid
- Restricted Shells
- Other Security Features
- The newgrp Command
- Statement blocks
- case Statement
- Getting Data Into Scripts
- Manipulating Positional Parameters (set, sort, shift)
- Analyzing Switches with getopts
- Options
- Reserved Variables (OPTARG, OPTIND, IFS)
- Setting Default Values
- Improving the Performance of Scripts
- Timing Commands and Scripts
- System Resources
- Setting Limits
- Portability Issues
- Editing a File from a Script
- Scripting with ed or sed
- UNIX and Linux Utilities to Manipulate Files
- Regular Expressions
- grep and egrep
- The Stream Editor sed
- Sorting in Scripts
- Generating Reports with awk
- Splitting Large Files
- Counting Words, Lines, and Characters
- Transforming File Contents
- Extracting Text Strings
- Examining and Comparing Files
- Reporting Differences Between Files
- Comparing Files of Any Format
- Displaying Data in Octal and Hex
- Compressing Data
- Converting File Formats
- Writing Functions
- Returning Value from Functions
- Returning String Output
- Local and Global Variables
- Defining Functions
- ksh Autoload Functions
- Pipelines
- Command Lists
- And and Or Lists
- Background Jobs
- Command Grouping
- I/O Redirection
Software Skills Training, Inc. (SST) is a leading provider of task-oriented training courses for IT professionals. Our task-based training philosophy is focused on saving you time and assuring that you are able to work more productively and with higher quality results after training. Founded in 2000, SST has delivered high-powered training to tens of thousands of IT professionals.
Choose from a variety of delivery options:
- Face-to-face in the classroom in over 100 cities
- Live remote attendance
- On-demand streaming
- Group training at your facility
We guarantee the overall quality of our courses with a 100% money-back guarantee. If any student is not totally satisfied for any reason, they can withdraw before the second day of class. Notify the instructor and return all course materials and receive a 100% refund.
Why Choose SST?- 50% hands on labs
- Small class sizes typically under 14 students
- Expert instructors that average over 10 years of teaching experience
- Students can retake any portion of a class that has been completed, within 12 months at no extra cost
- No registration fees or cancellation fees