UNIX SHELL Scripting
Module 1 : Introduction
Module 2 : Processing & Listing
- Displaying Processes – ps
- Displaying Directories – ls
- Getting Help – man
- Simple Commands used for processing
- Using Wildcards
- How to remove non empty directory?
Module 3 : File Creation and Displaying
- Redirection – using > symbol
- Redirecting Input – using < symbol
- Displaying Files – cat, more
- Piping – using | symbol
- Word Count
- Sorting a file
- Removing duplicates
- Transliteration
- Using Head and Tail command in files
Module 4 : Files Handling
- Creating directory
- Moving files to directories
- Copying files to directories
- Changing directory
- Removing files and directories
- Special Files – . and ..
- Creating Aliases
- Using Aliases
Module 5 : Cut and Paste
- Displaying selected characters – using cut
- Displaying selected fields – using delimiters
- Displaying selected files – using paste
- Using paste with delimiters
Module 6 : GREP and EGREP
- Displaying content of the file using GREP
- Displaying content of the file using EGREP
- EGREP Meta-character
- Back Referencing concepts
Module 7 : ZIP & TAR
- Zipping a file
- Unzipping a file
- Combining a set of files using TAR
- Extracting TAR file
- Using TAR with ZIP
Module 8 : FIND command
- Searching for a file – using find
- Finding List of files and directories
- Finding Last modified files
- Find with -exec
- Find with -xargs
Module 9 : Handling Jobs
- Using /dev/null
- Foreground Jobs
- Background Jobs – &
- Stopping Jobs – kill
- Changing Permissions – chmod
Shell Programming
Module 10 : Introduction to Shell
- Basics of Shell
- Set and Unset a variable
- Displaying – using echo
- Using Expr
- Using Test
- Getting input – using read
- Header file of shell script – using Shabang (#!)
- Sample Shell script program
Module 11 : Command Substitution
- Assigning a command to a variable
- Storing output to a variable
- Assigning global value – using Export
Module 12 : Command Line Arguments
- Passing input in runtime.
- Using input inside a program
Module 13 : Conditional & Looping Statement
- Using if statement
- Using if –else statement
- Using Nested if statement
- Using ‘While’ Loop
- Using ‘Until’ Loop
- Using ‘For’ Loop
- Using CASE
Module 14 : Functions
- Creating a function
- Calling a function in file
- Calling a function in another file
Module 15 : Advanced Commands
- SED
- Replacing values in a file
- STTY
- TOP
- Sending an email – using MAIL
- HERE
Module 16 : Editors
- NANO
- PICO
- GEDIT
- Vi Editor
Module 17 : AWK
- Basics of AWK
- Displaying values – using awk
- Using awk in Shell script
Module 18 : Scheduler
- Scheduling a job – using ‘Crontab’
- Scheduling a job – using ‘at’
Module 19 : Advanced Shell Scripting
- Monitoring a file
- Extracting data from HTML/XML file
Module 20 : Database Connectivity
- Connecting MYSQL to Shell
- Running SQL queries from Shell Script
- Generating a report and storing in a file Shopping cart