Course Outline
Introduction
- Learning Objectives
- Timetable
- Course Overview
- Entry Requirements
- Recommended Reading
- Participant Responsibilities
- Course Summary
Refresher on Fundamentals - Optional
- Files
- Directories and Processes
- Listing Directories - ls
- Accessing Help - man
- Viewing Files - cat, more
- Basic Commands
- Piping - utilizing the | symbol
- Output Redirection - using the > symbol
- Output Redirection - using the >> symbol
- Input Redirection - using the < symbol
- Error Redirection
- Utilizing /dev/null
- Foreground Processes
- Background Processes - &
- Terminating Processes - kill
- Special Directories - . and ..
- The Command Prompt - PS1
- Creating Aliases
- Using Aliases
- Command History
- Editing Commands - using Arrow Keys
- Editing Commands - using vi
- Customizing the Shell
- The Home Directory - HOME
- The Current Working Directory - pwd
- Changing Directories - cd
- Creating Directories - mkdir
- Deleting Directories - rmdir
- Interactive Copying - cp -i
- Interactive Moving - mv -i
- Interactive Deletion - rm -i
- Recursive Deletion - rm -r
- Wildcards - File Name Generation
- Word Counting - wc
- Locating Files - find
- Locating Text - grep, sort, cut, uniq, tr
- Modifying Permissions - chmod
Shell Programming
- Writing Shell Scripts
- Verifying Commands
- Creating Script Files
- Granting Execute Permissions
- Testing Scripts
- Executing Scripts - time
- Executing Scripts - dot
- Executing Scripts - exec
- Executing Scripts - ksh
- Debugging Scripts
- Passing Arguments
- The read Command
- Applying read in Scripts
- Selecting the Shell
- Formatting Output
- Suppressing Input - stty
Special Characters and Variables
- Quotation Marks
- Quoted Strings - ", '
- Escape Character - *
- Quoted Strings - `
- Using $(...)
- System Variables - set
- Other Special Variables
- User-Defined Variables
- Removing Variables - unset
- Variables within Scripts
- The typeset Command
- Integer Variables
- Special Constructs
Building Menus
- Conditional Logic - case
- Constructing a Menu
- Looping - while, until
- Pausing Output - sleep
- Pausing Output - dummy read
- Terminating the Script
- Exiting the Loop
- Hidden Feature - spawning a shell
- Handling Interrupts - trap
- Further Interrupt Handling
- Text Highlighting - tput
- Cursor Placement - backtab \b
- Korn Shell Menus
Selection Logic
- Conditional Testing
- Checking File Attributes
- Checking File Permissions
- Complex Tests - Nested ifs
- Complex Tests - elseif
- Negation Condition
- Multiple Conditions in a Single Test
- Testing String Values
- Using Square Brackets
- Preventing Empty Input
- Testing Numeric Values
- Advanced case Statements
- Displaying Variable Values
- Managing Whitespace
- Testing Command Execution
Iteration and Loops
- Arithmetic - let
- Loops - while, until
- Infinite Loops
- Loops - for
- Handling More than 9 Parameters - shift
Sub-scripts and Functions
- Local vs. Global Variables
- Sub-scripts
- The export Command
- Exit Status Codes
- Aliases
- Functions
- Commonly Used Functions
- Return Status Codes
- Modifying Functions
- Functions within Scripts
Advanced Commands
- Debugging - set
- Configuration - set
- Merging Files - join
- Merging Files - paste, basename and dirname
- Job Management - jobs
- Regular Expressions
- Global Pattern Search - grep
- Extended Regular Expressions - egrep
- Fixed String Search - fgrep
- Arithmetic - expr
- Arithmetic – bc, eval Command,
- Processing Arguments
- The getopts Command
- Working with Arrays
Advanced Editing – vi & sed
- vi - Key Combination Mappings
- Mapping Control Keys
- Using Abbreviations
- Editing Multiple Files
- Regular Expressions
- Global Insertion
- Here documents,
- Batch Stream Editor - sed, sed delete, -d, sed print, -p, sed suppress, -n, sed quit, -q, sed file, -f, sed Multiple Input, sed
- Find and Replace Operations
- sed Practical Examples
Text File Processing - awk
- The awk Programming Utility
- Pattern Matching
- Regular Expressions
- Comparison Patterns
- Compound Patterns
- Range Patterns
- Special Patterns
- Native Functions
- Debugging awk Scripts
- Passing Parameters
- Using the contains operator
- The printf Function
- Arithmetic Operations
- Functions
- substr Function
- length Function
- Action Statements
- Control Flow Statements
- Arrays
- Arrays in for Loops
- awk Practical Examples
Requirements
This course is designed exclusively for individuals who possess a solid working knowledge of UNIX or who have previously completed the Introduction to UNIX course.
Testimonials (7)
the additional course material is great, and can be used later on; the trainer was engaging throughout sessions, maintained a great energy, helped us a lot in the exercises and was patient, encourage us to keep practicing, shared real productive examples where we would need the samples that were shared during the training hours.
Ionelia
Course - Shell Scripting UNIX/Linux
learning bash
ALIN CRISTIAN
Course - Shell Scripting UNIX/Linux
bash scripting - practice exercises
Ionut D
Course - Shell Scripting UNIX/Linux
Large reach on bash subject.
Catalin Opris
Course - Shell Scripting UNIX/Linux
I liked that we practiced a lot of theory, which is the perfect way to learn new things.
Roxana
Course - Shell Scripting UNIX/Linux
I liked that the trainer adapted to each person and made analogies with real situations
AnaMaria
Course - Shell Scripting UNIX/Linux
Practical approach