Bash Shell Scripting Linux

Practical approach to learn and explore the shell scripting with various industrial projects

Last updated 2022-01-10 | 4.6

- Overview about various shells in Unix Based Operating Systems
- Introduction of Shell Programming
- Bash Shell Startup Scripts

What you'll learn

Overview about various shells in Unix Based Operating Systems
Introduction of Shell Programming
Bash Shell Startup Scripts
Shebang
Debug a script
The Shell Variables & Environment
Bash
Environmental & System Variables
set
env & export command
Quoting and their types
Performing Arithmetic Operations
Create an integer & constants Variable
Wildcard & Path name expansions
Industrial Project to Completely Automate the Pre-validation report
Conditional Statements (Decision Making)
If else statement & if..elif..else..fi statement
Logical AND &&
OR !!
test command & exit status of a command
Numeric
String & File Attributes Comparison
Positional parameters via special shell variable $1
$2
$3
...
$N
Bash Loops - for loop statement
for loop using C like Syntax
passing arguments
nested loop
Chessboard using nested loop statement
While loop statement
Case statement
Create a simple menu driven program or automation tool Using Case Statement
Shell Redirection & Process Management
Input Output Redirection in Linux
file descriptor (fd) to file
Foreground & background Process
Defining functions
Nested functions
Writing functions
Calling functions
Local & global variables
Passing arguments into a function
Return statement
Practice Lab Sessions
About AWK
Pattern matching in AWK
Pre & post processing in AWK
User defined variables in AWK

* Requirements

* PC or Laptop with internet Connection

Description

  • Overview about various shells in Unix Based Operating Systems
  • Introduction of Shell Programming
  • Bash Shell Startup Scripts
  • Shebang
  • Debug a script
  • The Shell Variables & Environment
  • Bash, Environmental & System Variables
  • set, env & export command
  • Quoting and their types
  • Performing Arithmetic Operations
  • Create an integer & constants Variable
  • Wildcard & Path name expansions
  • Industrial Project to Completely Automate the Pre-validation report
  • Conditional Statements (Decision Making)
  • If else statement & if..elif..else..fi statement
  • Logical AND &&, OR !!
  • test command & exit status of a command
  • Numeric, String & File Attributes Comparison
  • Positional parameters via special shell variable $1, $2, $3,...,$N
  • Bash Loops - for loop statement
  • for loop using C like Syntax, passing arguments, nested loop
  • Chessboard using nested loop statement
  • While loop statement
  • Case statement
  • Create a simple menu driven program or automation tool Using Case Statement
  • Shell Redirection & Process Management
  • Input Output Redirection in Linux
  • file descriptor (fd) to file
  • Foreground & background Process
  • Defining functions
  • Nested functions
  • Writing functions, Calling functions
  • Local & global variables
  • Passing arguments into a function
  • Return statement
  • Practice Lab Sessions
  • About AWK
  • Pattern matching in AWK
  • Pre & post processing in AWK
  • User defined variables in AWK

Course content

11 sections • 90 lectures

Introduction Preview 08:50

What is Linux Shell? Preview 04:59

Types of shells available in Linux Preview 08:43

About Shell Scripting Preview 07:36

Overview of Bash Shell Preview 02:06

User’s Home Directory - .bash_profile, .bashrc & .bash_logout Preview 08:50

Practice Lab Session - 1 Preview 08:17

Practice Lab Session - 2 Preview 04:20

Create a simple shell script Preview 08:16

Debug a script Preview 10:33

Bash Variables Preview 05:39

Environmental Variables Preview 04:45

System Variables Preview 06:02

Practice Lab Session Preview 08:04

Script to collect system information using echo command only Preview 10:13

Quoting and their types Preview 09:01

The Backslash (/) Preview 06:56

Getting User Input Via Keyboard Preview 05:01

read command Preview 03:22

Use of IFS Preview 02:57

Performing Arithmetic Operations Preview 05:22

Create an Integer Variable Preview 05:18

Create the Constants Variable Preview 03:59

Path name expansions Preview 04:02

Wildcards Preview 07:45

Aliases Preview 07:52

Overview of the Industrial Project Preview 05:32

Bash Colors Preview 03:06

Lab Session on bash colors Preview 03:17

Create an Automation Script - 1 Preview 11:30

Create an Automation Script - 2 Preview 12:48

Create an Automation Script - 3 Preview 04:49

Create an Automation Script - 4 Preview 11:04

Overview of conditional execution Preview 04:15

if else statement syntax Preview 08:00

Lab Session on if..else.. Preview 04:45

Lab Session on if..elif..else..statements Preview 06:17

test command Preview 04:21

Lab session on test conditions - 1 Preview 03:14

Lab session on test conditions - 2 Preview 10:43

exit status of a command Preview 04:57

Lab on exit status - 1 Preview 04:59

Lab on exit status - 2 Preview 07:12

Numeric, String comparison Preview 07:17

File attributes comparison Preview 02:28

command line arguments Preview 07:54

positional parameters via special shell variable $1, $2, $3,...,$9. Preview 06:09

for loop statement Preview 05:03

Lab Session on for loop Preview 04:37

Conceptual understanding of for loop Preview 04:43

for loop using C like syntax Preview 05:32

for loop reading from a text file Preview 04:39

for loop using command-line arguments Preview 09:11

Chessboard using nested loop statement Preview 13:16

While loop statement Preview 11:40

Lab Session - read a text file line-by-line or using IFS Preview 05:33

infinite while loop Preview 04:30

Case Statement Preview 04:19

Automation Tool Using Case Statement -1 Preview 10:50

Automation Tool Using Case Statement -2 Preview 10:22

Input Output Redirection in Linux Preview 05:18

Lab Session on redirection Preview 10:30

Pipelines in Linux Preview 06:00

tee command Preview 02:45

file descriptor (fd) to file for output Preview 02:51

file descriptor (fd) to file for input Preview 07:25

file descriptor (fd) for reading & writing Preview 02:58

Overview of Process Preview 06:17

Foreground & Background process Preview 06:08

Various Stats of a process Preview 06:17

Lab Session - 1 Preview 07:14

Lab Session - 2 Preview 06:15

Lab Session - 3 Preview 11:05

Defining functions Preview 05:25

Displaying functions Preview 06:25

Nested functions Preview 03:12

Lab Session - Writing Functions Preview 06:14

Local & Global Variables Preview 07:54

return statement Preview 05:26

Practice Lab Session Preview 03:04

Introduction AWK Preview 05:51

Pattern matching using awk Preview 04:49

Awk preprocessing Preview 03:16

Awk postprocessing Preview 02:56

About Sed Preview 02:13

Replacing or substituting string Preview 05:40

Changing the slash (/) delimiter Preview 04:16

Replacing string on a specific line number or matches a pattern Preview 05:27

Delete or add a line after or before a match Preview 04:49

Last Lecture Preview 00:38