Details
Shell scripts are made of Linux / Unix commands, hence to learn shell scripting is is very important to have good knowledge and experience on everyday linux commands, like sed , awk and all other basic commands. For participants who are not so good
at Linux commands, can take a bridging course with us before joining this course.
Outline
Module 1: Introduction
Introduction to Shell scripts.
Considerations to write bash shell scripts.
Module 2: Shell Basics
Introduction to Shell
Shell Command Syntax
Special Characters
Pattern Matching
Complex Pattern Combinations
Tilde & Other Expansions
Module 3: Writing Scripts
Shell Programming Language
Reserved Words
How to Write and Run Scripts
Debugging Shell Scripts
Data Types in Shell Scripts
Using Variables & Constants
Special Predefined Variables
Printing to the Screen for various scenarios
Accepting User Input
Formatting Display & User Input
Arithmetic & Logical Operators
Quoting
Module 4: Programming Logic
Conditional Expressions
Testing Operators
Testing Strings
Testing Options
Numeric Conditions
Testing Completion Status
Loops: if, while and until
The case Statement
The for Loop
When to Use Different Constructs
Writing Scripts to display menus
Module 5: String Manipulation
String Comparison
Concatenation
Substring Manipulations
Wildcards and Pattern Matching
Module 6: Command Line Processing
Getting Data Into Scripts
Manipulating Positional Parameters
Analyzing Switches with getopts
Options
Module 7: Overview of File Manipulation Utilities
Unix and Linux Utilities to Manipulate Files
Editing a File from a Script
Regular Expressions
Transforming File Contents
Extracting Text Strings
Module 8: Functions
Writing Functions
Returning Value from Functions
Returning String Output
Local and Global Variables
Defining Functions
Writing a function library to use in many scripts
Module 9: Advanced I/O with Streams
Redirection Operators
Manipulating Data Streams
here Documents
Using here doc to comment scripts
Using here doc to write html files
Using here doc to display segments of data to user and gather inputs
Module 10: Script Execution in Cron
Scheduling Execution Of Shell Scripts
Manage input and output from scripts in cron
Module 11: Advanced Techniques in ShellScripts
Using environment variables inside shell scripts
Statement / Code blocks
Writing multiple files from a single script
Capturing output from various sections of the script into multiple files
Calling shell scripts from within shell scripts and passing return status and data between them
Processing log files from shell scripts
Writing lock files to avoid resource contention and deadlocks
Module 12: Considerations For Writing Good Shell Script
Writing clean syntax
Standard style of documenting shell scripts
Maintaining script version history
Auto-indenting shell scripts
Simplifying your scripts
Module 13: Security
Security considerations while writing shell scripts
Script Process Ownership
suid and sgid
Other Security Features
Module 14: Performance and Porting Issues
Improving the Performance of Scripts
Portability Issues
Reviews
Be the first to write a review about this course.
Write a Review
Kore InfoTech was born in 2004 to provide value added services to its clients in Development of Websites and Software and IT Training space. We focus on delivering customised, flexible and cost effective services accross all our business domains.
Today we are a strong enterprise delivering IT Services in the below key areas :
a) Corporate Training b) Training For Individuals
c) Online Marketing Solutions (SEM, SEO, Adwords Services)
d) Design and Development of Websites , Mobile Websites and Customized Software