Unix Shell Scripting

Unix Shell Scripting
Duration: 3 Days
Pre-Requisites: None
Course Outline:
1.Shell Scripting – Fundamentals
Understanding the Linux Shell script, designed to run on Unix shell, command-line interpreter, the various operations on Shell scripts like – file manipulation, program execution, and text printing, understanding the various commands, syntax and shell scripting rules.
Hands-on Exercise – Write a shell script to open a file, Execute a program from a shell script, print text on console
2.Parameters, Variables & Arguments
Introduction to Shell Scripting concepts, special variables used, learning about command line arguments, working with Special Parameters, passing arguments to a Shell Script, inheritance rules.
Hands-on Exercise – Pass command line arguments to a shell script, Work with Special Parameters $*, $@, $$ etc
3.Loops & Iterations
Deep dive into Linux Shell script, understanding the concept of loops, the various types of loops and integrators in Linux Shell script, learning about the condition handling mechanism.
Hands-on Exercise – Write a script using while loop to create a hierarchy if directory, Use if/else statements to execute different set of code
4.Regular Expressions & Text Manipulations
Learning about the String object, taking regular expressions as arguments, understanding how to redirect arguments as well as input and output using Shell Scripts, string manipulation using regular expressions, different types of Regex.
Hands-on Exercise – Create a String object,Take regular expression as arguments, Redirect input and output using Shell Scripts, Manipulate a string using regular expressions
5.Writing Functions & Advanced Scripts
Introduction to Shell Script functions, basic functions, creation of library of functions, learning about advanced Shell Script commands, expansions and built-in commands, real world examples of Shell Scripting.
Hands-on Exercise – Use in-built shell script functions, Create a library of functions
6.Real World Shell Scripting Examples
Shell scripting examples in the real world – understanding about shell scripting, Backup Script , checking service status, disk usage, highest CPU usage, automatic users addition, calculating free and used memory, remote host and port checking, shell script to sync directories, sending email on login and logout.
Hands-on Exercise – Write a backup script, Check service status, Check disk usage using a script, Find out highest CPU usage, Create a script automatic users addition, Calculate free and used memory, Check a remote host and port, Use a script to send email on login and logout

Comments

Popular posts from this blog

Cloud Computing in simple

How to Write an Effective Design Document

Bookmark