![Learn Bash Shell Scripting for Automation [Video]](https://content.packt.com/V21589/cover_image_small.jpg)
Learn Bash Shell Scripting for Automation [Video]
Subscription
FREE
Video + Subscription
$15.99
Video
$109.99
What do you get with a Packt Subscription?
What do you get with a Packt Subscription?
What do you get with Video + Subscription?
What do you get with a Packt Subscription?
What do you get with eBook?
What do I get with Print?
What do you get with video?
What do you get with Audiobook?
Subscription
FREE
Video + Subscription
$15.99
Video
$109.99
What do you get with a Packt Subscription?
What do you get with a Packt Subscription?
What do you get with Video + Subscription?
What do you get with a Packt Subscription?
What do you get with eBook?
What do I get with Print?
What do you get with video?
What do you get with Audiobook?
-
Free ChapterIntroduction
-
Environment Setup to Practice with Bash Shell Scripting
- Environment Setup to Practice with Bash Shell Scripting
- Installing Any Linux Distribution And CentOS on Windows with WSL
- Enabling systemctl on WSL CentOS
- Configuring Gmail Setup on CentOS
- Accessing Windows Files from WSL Centos or WSL CentOS Files from Windows
- Basic Steps to Write and Execute a Bash Shell Script
- Different Ways to Execute a Shell Script
- How to Use CentOS Terminal on Visual Studio Code Editor
- chmod Command Won't Work by Default on WSL Linux
- Install Tools Such as Docker, Ansible, Java, nginx, and httpd with a Bash Script
-
Basic Understanding of Bash Shell Scripting
-
Variables
-
Inputs and Outputs
- Inputs and Outputs for Variables in Bash Shell Scripting
- Echo Command and Basic Usage of the Echo Command
- Practice with Variables and Echo Command
- Link Windows Path to Non-Root User Home of WSL OS
- Echo Command with Options Part-2
- How to Get the Colorful Output from Bash Shell Scripts
- Read Command
- Source Command to Read Inputs for Variables
- Export Command to Provide Inputs for Variables
- Command-Line Arguments to Provide Inputs for Variables of Bash Shell Script
- Shift Command with Command-Line Arguments
-
String Operations
-
Arrays
-
Bash Dictionaries | Bash Associative Arrays
-
Basics of Commands
- Exit Status of a Command
- Redirection Operators and STDIN, STDOUT, and STDERR
- How to Execute Any Command with the Help of a Variable?
- How to Use the Cut Command to Get Required Columns/Fields and Characters
- How to Use an awk Command to Get the Required Filed/Column or Line
- Basics of grep Command
- How to Use Variables in grep Command?
- Introduction to sed Command and Usage of Variables
- sed Command with Find and Replace | How to Use Different Delimiters in sed
- sed Command with Inserting and Deletion of Lines Using Line Numbers and Search
- Best Example to Use the tr Command with Cut and Then with kill-9
- Arithmetic Operations for Integers and Floating Point Numbers
-
Working with Command-Chaining Operators
- List of Command-Chaining Operators
- Command-Chaining Operator - Pipe
- Command-Chaining Operator - Semicolon
- Command-Chaining Operators - Logical AND and OR
- How to Find the Location or Path of Any Command or Installed Package
- Shell Script to Get the Location of Any Package
- Executing the Block of Code
- Simple Practice
- How to Get the Latest File or Directory from the Current Location
-
Test Command and Conditional Statements
-
Shell Scripting Practice
-
The if, elif, elif else, and Case Statements
-
Scheduling Jobs
-
Comments and Logging
-
Functions
-
Here Document and Here String
-
Loops
- Introduction to Bash Loops with an Example
- For Loop Syntax and Its Usage
- Working with Arrays Using For Loop
- Simple Practice with For Loops
- Send an Automatic Mail Alert When the Secret File Is Deleted
- Break and Continue Statements
- While Loop Part-1
- While Loop Part-2
- Until Loop with Example
- Select Loop and Its Usage with an Example
- Practice for You
- While Loop with getopts Command to Read Arguments
-
Working with REST APIs Using the Curl Command
-
Working with Remote Servers
- Introduction to Work with Remote Servers
- Shell Script to Execute a Command on Remote Hosts Using When They Used SSH Keys
- How to Provide Password for ssh with sshpass? | There Are Three Ways
- Working with SCP to Transfer a File from the Local Server to the Remote Server
- How to Provide a Password for ssh or scp Using Expect Command?
-
Real-Time Practice
-
Regular Expressions | Regex
-
printf Command
About this video
Bash shell scripting is a programming language to automate tasks and interact with the operating system in Unix/Linux. It allows users to write scripts that execute commands, make decisions based on conditions, and manipulate data. Using variables, loops, and functions, users can create powerful scripts to streamline repetitive tasks, manage system configurations, and improve system automation efficiency.
The course elaborates on Bash shell scripting in Unix/Linux environments. The course covers basic shell script writing to advanced automation techniques. You will learn about environment setup, variable handling, conditional statements, loops, and functions. The course delves into essential Unix filters such as grep, awk, and sed to manipulate data. It covers working with remote servers, interacting with REST APIs, and handling regular expressions. With practical projects and real-world examples, you will gain hands-on experience in automating tasks, enhancing productivity, and becoming proficient in Linux/Unix administration and automation.
Upon completion, you will be skilled in Bash scripting for Unix/Linux environments, automated tasks, managing configurations, and manipulating data effectively. The course covers conditional statements, loops, functions, and practical projects, providing hands-on experience.
- Publication date:
- August 2023
- Publisher
- Packt
- Duration
- 12 hours 31 minutes
- ISBN
- 9781835080948