100% found this document useful (1 vote)
1K views

BASH Shell Scripting Syllabus

BASH Shell Scripting Syllabus. Anyone interested for this training please do not hesitate to contact me. :P

Uploaded by

Adzmely Mansor
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views

BASH Shell Scripting Syllabus

BASH Shell Scripting Syllabus. Anyone interested for this training please do not hesitate to contact me. :P

Uploaded by

Adzmely Mansor
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

by Adzmely Mansor

independent consultant

BASH Shell Scripting


Knowing about shell scripting is a must for any advanced Linux administrator or engineer.  In this online
course, you will take your first steps towards unleashing the power of shell scripting with BASH through
lectures and hands-on labs.  Once you have been introduced to shell scripting, you will begin to see the
possibilities it can unlock in your own enterprise environment.

Duration: 4 Days
Training Method: Classroom (hands-on lab)
Course References: Base on Linux bash shell (Centos/Ubuntu distro running in VirtualBox)
Audience: This intermediate course is for experienced system administrator, programmers, application developers and
end users

Adzmely Mansor / Consultant


Course Subject : BASH Shell Scripting

Objective
Learn effective methods to create and use Bourne Again Shell (bash) scripts and utilities. Shell scripts are often the key to
becoming a productive Unix/Linux system administrator. During this course you will learn to write scripts that
demonstrate your ability to write shell scripts in Unix/Linux environment.

Note: Basic programing concepts are not taught in this course.

Course Outline

Day 1

• Introduction
• Shells
• Types of Unix Shells
• Uses of Shell Scripts
• Advantages of Shell Scripts

• First Shell Script

• Bash Basics
• Initialization Files
• Aliases and Variables
• Working with Variables
• Important Internal Bash Variables
• Command History
• Input and Output Channels
• Redirection to Files
• The Here Script Operator
• Feeding output to Another Process
• Duplicating the Output with tee
• Types of Commands
• Introduction to Variables
• Variable Substitution
• Variable Assignment
• Special Variable Types / Internal Variables
• Typing Variable
• declare / typeset
• Quoting
• Quoting Variable
• Escaping
• Creating and Using Arrays
• Lab Exercises

Adzmely Mansor / Consultant 2


Course Subject : BASH Shell Scripting

Day 2

• Test
• Test Constructs
• File test operators
• Mathematical Comparators
• String Comparators
• Checking Variables
• Other Comparators
• Nested if/then Condition Tests
• Lab Exercices
• Loops and Branches
• Case Statement
• While Loop
• For Loop
• Loop Control
• Breaking Out Current Loop
• Testing and Branching
• Prompting for User Input
• read command
• Using Arguments
• argument variables
• special argument variables
• using arguments
• Lab Exercises

Day 3

• Strings and substrings


• Searching and Replacing Substrings
• Obscure but Useful String Operations
• simple regular expression matching
• Commands (mastering commands in Unix/Linux in an indispensable prelude to writing effective shell scripts)
• Internal Commands
• command, echo, printf, read, cd, pwd, pushd, popd, dirs
• let, eval, set, unset, export, typeset, declare, readonly, getopts, exit, exec
• shopt, caller, true
• External Commands
• grep, awk, cat, chmod/chown, clear, cp/mv, cut, date, env
• ln, kill/killall, ls, false/true, umask
• sort, uniq, wc
• Functions
• Simple Function
• Complex Function

Adzmely Mansor / Consultant 3


Course Subject : BASH Shell Scripting

• Local Variables
• Recursion in Shell Scripting
• Here Script/Document
• introduction to here script
• using here script
• here script with replaceable parameters
• turning it off
• here script and *SQL
• exercise

Day 4

• Useful Tricks
• Escape Character
• Single Quote
• Double Quotes
• Back Quote
• Linking Output to Input
• Sending Email
• Scheduling with Cron
• Scheduling One Time Task with At
• Debugging Mode

• Colorizing scripts

• ncurses using Dialog

• Lab Exercise with sample Project/Tasks

Contact
Adzmely Mansor
Email : [email protected]
Mobile : +6019 959 1513

Adzmely Mansor / Consultant 4

You might also like