Please fill up the below form
and our Career Consultant will
contact to you in next 12 hours!

Name:


E-mail:


Phone:


Course:


Question / Query / Confusions


Follow us on Twitter
Contact icon

Office: 022-24933060
Cell: 9920 436030

Email icon

info@linobox.com
 Phone icon Live Practice Labs
test

Our live access labs provide full console access to a self-paced study lab environment. This is an ideal place to re-work lab exercises from class or to experiment with advanced configuration from your home or hotel room. Find out which works for you and get a downloadable eKit when you enroll.



Course Description

Linux Shell programming is useful for automating everyday tasks by executing Linux commands from within a script. Shell programming is especially popular with system administrators, but can be helpful to programmers, database administrators, CGI programmers, and end users as well.


Prerequisites

Students need to be familiar with basic Linux commands, such as cd, ls, pwd, cp, mv etc. and be able to navigate the directory tree. They should also be familiar with one of the Linux text editors, such as vi, emacs, or textedit.


Suggested follow-on course:

Perl Programming and Advanced Perl Programming.



Course Outline

Click here : Download the Course in PDF Format


UNIT 1: Introduction About this Course


Course Structure
What is the UNIX Shell?
Which Shell?
What is a Shell Script?

UNIT 2: Introduction to BASH Command Line Interface (CLI)


Overview BASH key configuration files
- - .profile/.bash_profile/.bashrc/.bash_history
Common built-in BASH commands (pwd,cd,set,unset,export,source,etc.
BASH Command-line Expansion
- Brace Expansion
- Tilde Expansion
- Parameter & variable Expansion
- Command Substitution
BASH Reserved words
BASH History identification & configuration
Aliases (ls,du,df,rm,cp)
Backticks - command expansion & execution
BASH Prompt configuration
Command chaining
Error level/Return code (Command Exit Status) identification
- Test return 0
- Test return 126 - permissions
- Test return 127 - command not found
Conditional execution of subsequent commands (&&,||)

UNIT 3: Your First Shell Script


A Basic Script
The echo Command
The read Command
Shell Basics Revisited
Special Characters
Comments

UNIT 4: Running a Shell Script


Running a Script on the Command-line
Running a Script from within vi
Your PATH and bin
Script Interpreters
CGI Scripts

UNIT 5: Redirection


Standard Input
- Direct input from Standard Input
- Redirect input from a file
Standard Output
- Direct output to Standard Output
- Redirect output to a file
- Append Standard Output to an existing file
Standard Error
- Redirect Standard Error
Input/Output (I/O) Redirection
- Pipes
- Sequential execution via pipes
Quoting & Escaping
- single quotes preserves whitespace, double quotes don't
- Full-quoting - single quotes - all enclosed values are literal
- Partial quoting - double quotes - all enclosed values are literal except "$ \`"
- \ is the escape character used to treat following strings literally

UNIT 6: Shell Programming Features


Shell Variables
Environment Variables
The Trouble with Quotes 1
The Trouble with Quotes 2
Grouping Commands
Line Control

UNIT 7: Conditional Code  


True and False
Conditional Command Execution
The if Statement
The else Clause
The elif Clause
Using test
The case Statement: Concise Conditional Branching
Conditionals - If-Then-Else – Testing
Positional Parameters

UNIT 8: Loops


Loops
- For
- While
- Until
break and continue
Numerical Calculations

UNIT 9: Text Processing


About Filters
grep
Regular Expressions
sort
sed
awk

UNIT 10: Functions


Program Structure
Defining and Calling a Function
Function Parameters
Function Return Values
Functions in Other Files
Case Study: The yesno Function

UNIT 11: Command-line Parameters


Using Command-line Parameters
Using shift
Using set --
Using IFS
Usage Messages

UNIT 12: Advanced Scripting


Debugging
Default Values for Variables
Temporary Files
Preventing Abnormal Termination

UNIT 13: Exercises/Assignments


Lots of exercises and assignments, so that student should be capable of writing
real world administration scripts.


Duration

LinoBox offers Regular Track (12 days), Weekends Track (6 days) and Rapid Track (3 days) Boot Camps for Shell Programming. Duration for the Course is 24 hours.

Regular Track
Course:- 12 days @ 2hours/day

Weekends Track (Sat)
Course:- 6 days @ 4hours/day

Rapid Track/BootCamps
Course:- 3 days @ 8hours/day


On-Site Delivery

This course is available for on-site delivery for groups of 5 or more students. LinoBox offers discounted training for on-site courses of more than 5 students - contact Sanjeet Vanamala at sanjeet@linobox.com or 91-9819586142 to schedule training and arrange details or for any kind of information.