Beginners Course : Learn Bash Shell Scripting For Automation
Published 5/2023
MP4 | Video: h264, 1280x720 | Audio: AAC, 44.1 KHz
Language: English | Size: 5.13 GB | Duration: 12h 24m
Published 5/2023
MP4 | Video: h264, 1280x720 | Audio: AAC, 44.1 KHz
Language: English | Size: 5.13 GB | Duration: 12h 24m
Learn How to Automate Repetitive Tasks with Bash Shell Scripting
What you'll learn
Learn Bash Shell Scripting from basic to advanced level
Learn how to use command chaining or if - else statements
Learn how to use Bash arrays
Learn how to use loops
Learn how to execute REST APIs with curl command
Learn how to work with remote servers using ssh with the help of sshpass and expect commands
Learn how to apply grep, cut ,awk and sed commands to get fields or lines
Requirements
Basic knowledge on Linux/Unix/Mac OS and Commands
Basic Knowledge to use vi/vim command line editors or Visual Studio Code Editor
You Should have Linux/Unix/Mac OS to practice
You can also create Linux OS on Windows Using WSL
Description
This unique course is designed to become an expert in bash shell scripting to automate repetitive tasks.As we know that most of the organizations are moving into Linux and Unix operating system as its generally open source. Additionally, Linux, Unix skills gained by developers would make them more in demand.From a developer perspective, this course not only cover command line commands, but also Bash shell scripting to make you comprehensive developer expert in Linux \ Unix OS.The topic covered are as follows:How to write shell scripts from basic to advanced levelWhat is the shebang line and why every shell script need ones.How to create and use variablesTesting and Decision MakingCommand line argumentsInput and outputConditional StatementsExit statusfilters like grep, awk, cut and sedFunctionsLoopsCase statementsLoggingWorking with REST APIs using curlWorking with remote serversWho this course is for:Beginner Level to Advanced Level Automation Engineers with Bash Shell ScriptingRequirementsNeed minimum knowledge on Unix/Linux CommandsDesire to learn shell scriptingAny Unix-Like OS running on Physical Machine or Virtual Machine or Virtual Machine from Any Cloud ProviderWhat you'll learnStudents will be able to understand shell scripting conceptsStudents will be able to understand unix filters like awk, cut and sedThis course is helpful to Automate repetitive tasks in different Admin areas like Linux Admins, Middleware Admins, Database Admins, DevOps Admin and AWS Cloud AdminsHappy learning!!
Overview
Section 1: Introduction
Lecture 1 Introduction
Lecture 2 Pre-Requisites to the course
Lecture 3 Who can Enroll this course ?
Lecture 4 Required Documents for this course
Section 2: Environment Setup To Practice With Bash Shell Scripting
Lecture 5 Environment Setup To Practice with Bash Shell Scripting
Lecture 6 Installing Any Linux Distribution And CentOS on Windows With WSL
Lecture 7 Enabling systemctl on WSL CentOS
Lecture 8 Configuring Gmail Setup on CentOS
Lecture 9 Accessing Windows Files From WSL Centos or WSL CentOS Files From Windows
Lecture 10 Basic Steps to write and execute a Bash Shell script
Lecture 11 Different Ways to Execute a Shell Script
Lecture 12 How to Use CentOS Terminal on Visual Studio Code Editor
Lecture 13 chmod command wont work by default on WSL Linux
Lecture 14 Install tools like docker, ansible, java, nginx and httpd with a Bash Script
Section 3: Basic Understanding about Bash Shell Scripting
Lecture 15 Basic Understanding about shell script execution
Lecture 16 Usage of Semicolon ; in Bash Shell Scripts
Section 4: Variables
Lecture 17 Introduction to variable what is a variable and define variables with differ
Lecture 18 Default Value of a Variable and How to unset or clear or delete variable valu
Lecture 19 Types of Variables
Lecture 20 Rules To Define Variables
Lecture 21 What is a Syntax in Bash Shell Scripting
Section 5: Inputs & Outputs
Lecture 22 Inputs & Outputs For Variables in Bash Shell Scripting
Lecture 23 echo command & Basic usage of echo command
Lecture 24 Practice with Variables & echo Command
Lecture 25 Link Windows Path to Non-Root User Home of WSL OS
Lecture 26 echo command with options part-2
Lecture 27 How to get the colorful output from bash shell scripts
Lecture 28 Read Command
Lecture 29 Source Command to read inputs for variables
Lecture 30 export command to provide inputs for variables
Lecture 31 Command-Line Arguments to provide inputs for Variables of Bash Shell Script
Lecture 32 Shift Command With Command-Line Arguments
Section 6: String Operations
Lecture 33 Basic Operations on String
Lecture 34 String Operations on Paths
Section 7: Arrays
Lecture 35 Introduction to Arrays
Lecture 36 Accessing Array Elements and operations on arrays
Lecture 37 Why We Need Arrays ?
Lecture 38 How to Provide Inputs for Arrays ?
Section 8: Bash Dictionaries | Bash Associative Arrays
Lecture 39 Introduction to Bash Dictionaries
Section 9: Basics of Commands
Lecture 40 Exit Status of a Command
Lecture 41 Redirection Operators and STDIN, STDOUT and STDERR
Lecture 42 How to execute any Command With the help of a Variable ?
Lecture 43 How to use cut command to get required columns/fields and characters ?
Lecture 44 How to use awk command to get required filed / column or Line
Lecture 45 basics of grep command
Lecture 46 How to use variables in grep command ?
Lecture 47 Introduction to sed command and usage of variables
Lecture 48 sed command with find and replace | How to use different delimiters in sed ?
Lecture 49 sed command with inserting an deletion of lines using line numbers and search
Lecture 50 Best Example to use tr command with cut and then with kill -9
Lecture 51 Arithmetic Operations for Integers & Floating Point Numbers
Section 10: Working with Command Chaining Operators
Lecture 52 List of Command Chaining Operators
Lecture 53 Command Chaining Operator - pipe
Lecture 54 Command Chaining Operator - semicolon
Lecture 55 Command Chaining Operators - Logical AND and OR
Lecture 56 How to find the location or path of any command or installed package
Lecture 57 Shell Script to get the location of any package
Lecture 58 Executing the block of code
Lecture 59 Simple practice
Section 11: test command And Conditional Statements
Lecture 60 How to use test command to validate a condition
Lecture 61 exit command and its usage
Lecture 62 Introduction to If and If-else Statements
Lecture 63 Debugging a Bash Shell Script
Section 12: Shell Scripting Practice-1
Lecture 64 Write a Shell Script to read a given file content
Lecture 65 Write a Shell Script to install packages using yum
Section 13: if elif elif else and case statements
Lecture 66 if elif elif elif statement
Lecture 67 case statement
Lecture 68 Write a Shell Script to find the version for a given tool
Lecture 69 Shell Script to send All DevOps tools info to mail
Section 14: Scheduling Jobs
Lecture 70 Scheduling jobs with at command
Lecture 71 Scheduling jobs with crontab
Section 15: Comments & Logging
Lecture 72 Comments & Logging
Section 16: Functions
Lecture 73 Introduction to Functions
Lecture 74 Defining a Function and Calling it with out without arguments
Lecture 75 How to pass strings or text as an argument ?
Lecture 76 Shell Script to Install Packages with Functions
Lecture 77 Scope of Variables
Lecture 78 How to reuse Function in Different Shell Scripts
Section 17: Here Document & Here String
Lecture 79 Heredoc & Herestr
Section 18: Loops
Lecture 80 Introduction to Bash Loops With an Example
Lecture 81 For Loop Syntax and Its usage
Lecture 82 Working with Arrays using for loop
Lecture 83 Simple Practice with for loops
Lecture 84 Send An Automatic Mail Alert when secret file is deleted
Lecture 85 break and continue statements
Lecture 86 while loop Part-1
Lecture 87 while loop Part-2
Lecture 88 Until Loop with example
Lecture 89 Select Loop and Its usage with example
Lecture 90 Practice for you
Lecture 91 While Loop With getopts command to read arguments
Section 19: Working with REST APIs using curl command
Lecture 92 How to validate the REST API execution with curl command ?
Section 20: Working With Remote Servers
Lecture 93 Introduction to work with Remote Servers
Lecture 94 Shell Script to execute a command on remote hosts using when they used ssh keys
Lecture 95 How to Provide Password for ssh with sshpass ? | There are three ways
Lecture 96 Working with SCP to transfer a file from local server to remote server
Lecture 97 How to provide password for ssh or scp using expect command ?
Section 21: Real Time Practice
Lecture 98 Monitor a service(s) on host for every minute if not running then send a Mail
Lecture 99 Shell Script to monitor a micro-service with its health url
Lecture 100 Monitor Application Log Directory | Alert If Application is not generating logs
Lecture 101 Install required git version on host
Section 22: Regular Expressions | Regex
Lecture 102 Introduction to Regular Expressions or Regex
Lecture 103 Creation of Pattern or Extended Regular Expressions or ERE
Lecture 104 Write a Shell Script to get latest git version from git-scm website
Lecture 105 case statement with regex
Section 23: printf command
Lecture 106 concepts of printf command
Anyone interested in Bash Shell Scripting