AIM of the course:
This course aims to get you accustomed to writing shell scripts under a Linux/Unix enviornment. Shell scripting helps one to automate complicated tasks and save lots of users time.
Pre-requsites:
Linux level 101. Good hands on practicse with command line enviornment.
Duration:
- Regular Batch: 15 Sessions of 1.5 Hours
- Weekend workshop Batch: Saturday and Sunday.
Overview of the course:
- Review of Linux/UNIX enviornment
- Introduction to BASH Scripting.
- BASH using commands
- Debugging scripts
- Functions in BASH
- Conditional Statement
- Loops and Iterations.
- Regular Expressions
- Taking advantage of SED
- Working with AWK.
Course Details:
- Review of Linux/UNIX enviornment
- File system, Basic Commands.
- Linux FHS.
- Remembring file permession
- Using VI editor
- Introduction to BASH Scripting.
- Writing your first script.
- Executing your script.
- The BASH enviornment:
- Variables - user defined, system and enviornment, inbuilt, commandline arguments
- Comments.
- Taking input from user.
- Display output to users.
- Escaping characters, Single Quotes & Double Quotes.
- Shell Expansion
- Understanding purpose of the Sha-Bang line in the script.
- BASH using commands
- Builtins
- Using external commands.
- Debugging scripts
- Functions in BASH
- Conditional Statement
- The if statement.
- comparision of values and strings
- exit status of a command.
- if/then/else constructs.
- if/then/elif/else constructs
- Nested if statements
- Case structure
- Loops and Iterations.
- The for loop.
- The while loop.
- break and continue.
- Untill loop.
- The select builtin.
- The shift builtin.
- Regular Expressions
- Introduction to regex.
- Using grep & egrep.
- Using regex with if condition.
- Taking advantage of SED
- Introduction to sed.
- Using sed for editing and filtiring text.
- Different sed commands
- Sed and regular expressions.
- Advanced sed usage.
- Working with AWK.
- Getting started with AWK
- Basic AWK scripts
- AWK and data files
- AWK pattern and procedures
- AWK variables, constructs etc.