Video description
Many organizations favor Bash scripts for executing shell commands, running and customizing administrative tasks, automating repetitive tasks, and performing many more Linux and Unix functions. Having Bash scripting skills will make you stand out from your peers and help you advance in your automation career. With this course, you will learn Bash shell scripting in detail and understand how to apply the acquired skills confidently in the real world.
Starting with an introduction to Bash shell scripting, the course takes you through the process of installing Ubuntu on Windows 10. You will also learn to install Docker on a Ubuntu server and understand the basic steps to write and execute shell scripts. Once you have become familiar with redirection operators and explored commands such as grep, cut, awk, tr, and tee, you will write a simple script to get to grips with using the echo command, variables, strings, comments, and debugging.
The course also covers input and output commands, arithmetic operators, conditional statements, arrays, and loops, and demonstrates how to schedule jobs. You will work with remote servers, functions, the printf command, and the sed command and discover what awk scripting is. Finally, you will put your knowledge to practice by designing a simple digital clock and automating multiple server inventory using shell scripts.
By the end of this course, you will have become well-versed in Bash shell scripting and developed the skills to automate repetitive tasks.
What You Will Learn
- Write and execute shell scripts confidently
- Discover how to create and use variables
- Find out the role of a shebang line in shell scripting
- Become familiar with basic and advanced shell scripting commands
- Design an arithmetic calculator with shell script using the awk command
- Execute different commands on different servers using shell scripts
Audience
Whether you are a beginner or an advanced-level automation engineer, or a Linux administrator looking to explore Bash shell scripting, this course is for you. A basic understanding of Unix or Linux commands is necessary to get started with this course.
About The Author
VRTechnologies: VRTechnologies is an IT Firm with 7+ years of experience in different domains. They are very interested in teaching new technologies and believe that the best way to learn is by doing it in a fun way. VRTechnologies have a good practical knowledge of automation with different scripting languages such as Shell scripting, Python scripting, and YAML scripting. Their classes focus on providing high-quality documentation with practical knowledge and believe a Hands-on experience in learning new technologies makes learning really interesting.
Table of contents
-
Chapter 1 : Introduction
- Introduction to the Course
- Required Documents for This Course
- Environmental Setup to Practice Bash Shell Scripting
- Installing Ubuntu on Windows 10
- Basic Steps to Write and Execute a Shell Script
- List of General-Purpose Commands to Understand the Usage of a Command
- Configuring Gmail on an Ubuntu Server
- Docker Installation on an Ubuntu Server Using Bash Shell Script
- Chapter 2 : Redirection Operators
- Chapter 3 : Commands to Read the File Content
- Chapter 4 : Grep Command
- Chapter 5 : Cut Command
- Chapter 6 : Awk Command
- Chapter 7 : Simple Useful Commands for Shell Scripting
-
Chapter 8 : Basics of Shell Scripting
- First Simple "Hello World" Script Using the Echo Command
- Introduction to Variables
- Simple Shell Script to Know the Usage of Variables in Bash Shell Scripting
- Advanced Usage of the Echo Command
- Here Document for Multi-Lines or Multi-Line Block
- Using the Here Strings
- Writing Comments for a Shell Script
- What Is #!/usr/bin/env bash?
- Debugging a Bash Shell Script
- Exit Status of a Command
- Chapter 9 : String Operations to Write Bash Shell Scripting
- Chapter 10 : Input and Output Commands for Bash Shell Scripting
- Chapter 11 : Arithmetic Operators
- Chapter 12 : Test Command, Commands Chaining, and Conditional Statements
-
Chapter 13 : Conditional Statements - Simple If, If-else, If-elif-else
- Simple If and If-else Conditional Statement
- Simple Shell Script to Verify if the User Is Root and if the User Has Sudo
- Shell Script to Start Docker Service
- Logical AND, OR, and NOT Operators - (, ||, and !)
- Differences Between [ ] and [[ ]] (Old and New Test Command) and Also (( ))
- If-elif-else Conditional Statement
- How to Handle the Command Line Arguments
- Chapter 14 : Scheduling Jobs with at and crontab
- Chapter 15 : Arrays of Bash Shell Scripting
- Chapter 16 : Loops and Loop Control Statements - Part 1
- Chapter 17 : Working with Remote Servers
- Chapter 18 : Loops and Loop Control Statements - Part 2
- Chapter 19 : Linux Functions
- Chapter 20 : Complete Printf Command
-
Chapter 21 : Awk Command and Awk Scripting
- Introduction to Awk
- Awk Command with Action and Basic Variables
- Introduction to Awk Scripting
- Awk Command with Options, Action, and Basic Variables
- Simple "Hello World" Awk Script
- How to Define a Variable, Display a Variable, and Execute Multiple Statements
- Awk Command or Awk Script: Reading Variable Values from the Command Line
- How to Use the Awk Command/Script in Shell Scripts
- How to Read Variables for the Awk Command Using a Shell Script
-
Chapter 22 : Complete Sed Command
- Introduction to the Sed Command
- Sed: Viewing File Content and Deleting File Content Based on Line Numbers
- Searching File Content
- Find and Replace with the Sed Command
- Insertion and Deletion with the Sed Command
- Regex: Introduction to the Sed Command with Regex
- Regex - Part 1 - Regex with Special Characters (\s \t . *\+ \? and \)
- Regex - Part 2 - Regex with Special Characters (^ and $)
- Regex-Part-3: Regex with Special Characters ( [] () and {} )
- Simple Shell Script to Get All Git Versions from Official Git-scm Website
- Chapter 23 : Real-Time Practice (Low Level to High Level)
Product information
- Title: Complete Bash Shell Scripting
- Author(s):
- Release date: November 2020
- Publisher(s): Packt Publishing
- ISBN: 9781800209695
You might also like
video
Bash Shell Scripting, 2nd Edition
8 Hours of Video Instruction Overview Bash is the best way for you to efficiently and …
video
A Complete Course on Linux Bash Shell Scripting with Real-Life Examples
This course is designed for you if you have experience in Linux and want to develop …
video
Bash Scripting Fundamentals
4+ Hours of Video Instruction More than 4 hours of video instruction that help you learn …
video
Mastering Bash Shell Scripting: Automate your daily tasks [Updated for 2021]
Do you want to learn bash shell scripting for automating repetitive tasks, running multiple commands simultaneously, …