Linux - Shell Scripting

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:

  1. Review of Linux/UNIX enviornment
  2. Introduction to BASH Scripting.
  3. BASH using commands
  4. Debugging scripts
  5. Functions in BASH
  6. Conditional Statement
  7. Loops and Iterations.
  8. Regular Expressions
  9. Taking advantage of SED
  10. Working with AWK.

 

Course Details:

  1. Review of Linux/UNIX enviornment
    1. File system, Basic Commands.
    2. Linux FHS.
    3. Remembring file permession
    4. Using VI editor
  2. Introduction to BASH Scripting.
    1. Writing your first script.
    2. Executing your script.
    3. The BASH enviornment:
      1. Variables - user defined, system and enviornment, inbuilt, commandline arguments
      2. Comments.
      3. Taking input from user.
      4. Display output to users.
      5. Escaping characters, Single Quotes & Double Quotes.
      6. Shell Expansion
    4. Understanding purpose of the Sha-Bang line in the script.
  3. BASH using commands
    1. Builtins
    2. Using external commands.
  4. Debugging scripts
  5. Functions in BASH
  6. Conditional Statement
    1. The if statement.
      1. comparision of values and strings
    2. exit status of a command.
    3. if/then/else constructs.
    4. if/then/elif/else constructs
    5. Nested if statements
    6. Case structure
  7. Loops and Iterations.
    1. The for loop.
    2. The while loop.
    3. break and continue.
    4. Untill loop.
    5. The select builtin.
    6. The shift builtin.
  8. Regular Expressions
    1. Introduction to regex.
    2. Using grep & egrep.
    3. Using regex with if condition.
  9. Taking advantage of SED
    1. Introduction to sed.
    2. Using sed for editing and filtiring text.
    3. Different sed commands
    4. Sed and regular expressions.
    5. Advanced sed usage.
  10. Working with AWK.
    1. Getting started with AWK
    2. Basic AWK scripts
    3. AWK and data files
    4. AWK pattern and procedures
    5. AWK variables, constructs etc.

 

Address

OpenSourceCook.in
"Natraj"  Bungalow,
Colony No.7,  Sr.No. 38.
(Lane Behind Sai Baba Mandir)
Kale Borate Nagar, Hadapsar,
Pune - 411028.
Get Directions