Course Outline

Introduction

  • Objectives
  • Course Schedule
  • Course Introductions
  • Pre-requisites
  • Bibliography
  • Delegate Responsibilities
  • Course Summary

Review of Basics - Optional

  • Files
  • Directories and Processes
  • Displaying Directories - ls
  • Getting Help - man
  • Displaying Files - cat, more
  • Simple Commands
  • Piping - using | symbol
  • Redirection - using > symbol
  • Appending Output - using >> symbol
  • Redirecting Input - using < symbol
  • Redirecting Errors
  • Using /dev/null
  • Foreground Jobs
  • Background Jobs - &
  • Stopping Jobs - kill
  • Special Files - . and ..
  • The Command Prompt - PS1
  • Creating Aliases
  • Using Aliases
  • Command History
  • Command Line Editing - using Arrow Keys
  • Command Line Editing - using vi
  • Customizing the Shell for government
  • The Home Directory - HOME
  • The Working Directory - pwd
  • Changing Directories - cd
  • Creating a Directory - mkdir
  • Removing a Directory - rmdir
  • Interactive Copy - cp -i
  • Interactive Move - mv -i
  • Interactive Remove - rm -i
  • Removing Directories - rm -r
  • Wild Cards - File Name Generation
  • Word Count - wc
  • Finding Files - find
  • Finding Text in Files - grep, sort, cut, uniq, tr
  • Changing Permissions - chmod

Shell Programming for government

  • Creating Shell Scripts
  • Testing the Command
  • Creating the Script File
  • Adding Execute Permissions
  • Testing the Script
  • Running the Script - time
  • Running the Script - dot
  • Running the Script - exec
  • Running the Script - ksh
  • Debugging the Script
  • Passing Parameters
  • The read Command
  • Using read in Scripts
  • Choosing the Shell for government
  • Tidying the Output
  • Suppressing Input - stty

Special Characters and Variables for government

  • Quotation Marks
  • Quoted Strings - ", '
  • Escape Character - *
  • Quoted Strings - `
  • Using $(...)
  • System Variables - set
  • Other Special Variables for government
  • User Variables
  • Unsetting User Variables - unset
  • Variables in Scripts
  • The Typeset Command
  • Integer Variables
  • Special Constructs

Creating Menus for government

  • Conditions - case
  • Creating a Menu for government
  • Iteration - while, until
  • Holding the Output - sleep
  • Holding the Output - dummy read
  • Ending the Script
  • Ending the Loop
  • Hidden Option - forking a shell
  • Trapping Interrupts - trap
  • More on Interrupts for government
  • Highlighting Text - tput
  • Positioning the Cursor - backtab \b
  • Korn Shell Menu

Selection for government

  • Conditional Testing
  • Testing File Attributes
  • Testing File Permissions
  • Multiple Tests - Nested ifs
  • Multiple Tests - elseif
  • The NOT Condition
  • Multiple Conditions in One Test
  • Testing Strings
  • Using Square Brackets for government
  • Avoiding Null Input
  • Testing Numbers
  • More on case for government
  • Displaying Variables
  • Placing Spaces
  • Testing Commands for government

Iteration, Looping for government

  • Computations - let
  • Iteration - while, until
  • Infinite Loop
  • Iteration - for
  • More than 9 Parameters - shift

Sub-scripts and Functions for government

  • Local and Global Variables
  • Sub-scripts for government
  • The Export Command
  • Exit Status
  • Aliases for government
  • Functions
  • Useful Functions for government
  • Return Status
  • Manipulating Functions
  • Functions in Scripts for government

Advanced Commands for government

  • Debugging - set
  • Setting - set for government
  • Merging Files - join
  • Merging Files - paste, basename and dirname
  • Job Control - jobs
  • Regular Expressions for government
  • Global Regular Expression Printer - grep
  • Extended Regular Expression grep - egrep
  • Fast Regular Expression Search - fgrep
  • Computations - expr
  • Advanced Computations – bc, eval Command
  • Argument Processing for government
  • The getopts Command
  • Using Arrays for government

Advanced Edit – vi & sed for government

  • vi - Mapping Key Combinations
  • Mapping Control Keys for government
  • Using Abbreviations for government
  • Editing Multiple Files
  • Regular Expressions for government
  • Global Insert for government
  • Here Document for government
  • 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 for government
  • sed Example for government

Text File Processing - awk for government

  • The awk Programming Tool for government
  • Pattern Matching for government
  • Regular Expressions for government
  • Comparison Patterns for government
  • Compound Patterns for government
  • Range Patterns for government
  • Special Patterns for government
  • Built-in Functions for government
  • Troubleshooting awk Scripts for government
  • Passing Parameters to awk for government
  • Using Contains in awk for government
  • The printf Function in awk for government
  • Computations in awk for government
  • Functions in awk for government
  • The substr Function in awk for government
  • The length Function in awk for government
  • Action Statements in awk for government
  • Control Flow Statements in awk for government
  • Arrays in awk for government
  • Using Arrays with for Loops in awk for government
  • awk Examples for government

Requirements

This course is designed exclusively for individuals who possess a solid working knowledge of UNIX or who have completed the Introduction to UNIX course. It is tailored to enhance skills and proficiency, ensuring alignment with the technical requirements for government operations.
 14 Hours

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories