Bash Scripting
Bash scripting is a powerful tool for automating tasks and streamlining workflows on Linux and other Unix-based systems. Here learn the fundamentals of Bash scripting, including variables, loops, conditionals, functions, array, and more.
- How to Make Bash Script Executable Using Chmod
- Shell Script to Check Linux Server Health
- How to Concatenate String Variables in Bash [Join Strings]
- How to Do Bash Variable Substitution (Parameter Substitution)
- Bash Parameter Expansion with Cheat Sheet
- Bash getopts with Examples
- How to Pass all Arguments in Bash Scripting
- Bash Function Return Value
- Bash Loop Through Lines in a File
- Bash readarray with Examples
- Bash let with Examples
- Bash expr with Examples
- Bash read password
- Bash for Loop Range Variable
- Bash Arrays Explained
- Ways to Find Bash Array Length
- Bash Split String by Delimiter
- Bash if Options
- Bash If Statements for String Comparison
- Debugging Techniques for Bash Scripts
- Determining if a Bash String is Empty
- Bash if Statement with Multiple Conditions
- Meaning of Shebang in Bash Scripts
- How to Comment Code in Bash Script
- How to Read CSV File in Bash
- Bash Scripting: How to Check if File Exists
- Bash Scripting: How to Check if Directory Exists
- Bash If Else Statements: Examples and Syntax
- Bash eval Command with Examples
- How to Use Sleep Command in Bash Scripting
- Bash Associative Arrays with Examples
- Bash Script for Counting Lines in a File
- How to Use While Loop in Bash for Efficient Scripting
- Bash basename Command with Examples
- How to Create Multiline Strings in Bash
- How to Use Bash if With && Operator
- 50 Bash Script Examples to Kickstart Your Learning
- Case statement in Bash Shell Scripting
- Trimming White Space in Bash
- How to Extract Filename from Absolute Path in Bash
- How to Get Directory Path in Bash
- Extract Extension from File Path in Bash
- Extract Filename without Extension from Full Path in Bash
- Bash for Each File in a Directory
- Bash for Loop with Array
- Bash Continue – Using with for Loop
- Bash Backticks vs Dollar Parentheses $()
- How to Assign Variable in Bash
- Bash Division Explained
- Bash Modulo (Division Remainder)
- Bash While Read Line by Line
- Bash shift Command
- Bash Looping Through Array of Strings
- Bash read Command with Examples
- Bash Check Empty Array
- Using Bash For Loops to Iterate Over a List of Strings
- Bash Break – Using with For Loop
- How to Use seq With for Loop in Bash
- How to Use $@ in Bash Scripting
- Get the Current Script Directory in Bash
- Special Variables in Bash Explained [With Examples]
- Bash Exec Command with Examples
- How to Assign Boolean Expressions to Variables in Bash
- How to Read JSON file in Shell Script
- Bash Exit Command Explained [With Examples]
- Bash mapfile Command Explained [With Examples]
- Counter Increment and Decrement in Bash Loops
- Using passwd Command in Shell Script
- Check Input Arguments in Bash Script
- Shell Script to Add User Account with Password
- Shell Script to Add User to Sudoers
- Shell Script to Check Disk Space and Send Email Alert
- Shell Script to Create and Format a Partition
- Shell Script to Check If a Process is Running