In this guide, we will learn how to work with conditional statements in bash, how to use file test, integer, and string operators. And finally, we will discuss how to write compact conditional statements using logical AND and logical OR operators.
Shell scripting
- Bash scriptingBASHBash TipsLinuxLinux AdministrationLinux BasicsLinux CommandsLinux Tips & TricksScriptingShell ScriptsUnix/Linux Beginners
Bash Scripting – String Manipulation
By KarthickBy Karthick 4.1K viewsString manipulation is one of the fundamental concepts of bash scripting. This guide explains how to create and manipulate strings in bash.
- Bash scriptingBASHLinuxLinux BasicsLinux CommandsLinux Tips & TricksScriptingShell ScriptsUnix/Linux Beginners
Bash Scripting – Printf Command Explained With Examples
By KarthickBy Karthick 7.1K viewsIn this article, I am going to explain the basic usage of the Bash…
- Bash scriptingBASHBash TipsLinuxLinux AdministrationLinux BasicsLinux CommandsScriptingShell ScriptsUnix/Linux Beginners
Bash Scripting – Associative Array Explained With Examples
By KarthickBy Karthick 26.3K viewsThis is the second article as part of bash arrays. In the previous article,…
- Bash scriptingBASHBash TipsLinuxLinux BasicsLinux Tips & TricksScriptingShell ScriptsUnix/Linux Beginners
Bash Scripting – Indexed Array Explained With Examples
By KarthickBy Karthick 17.9K viewsArrays are a type of data structure that is used to store values of…
- Linux CommandsBASHBash scriptingBash TipsLinuxLinux AdministrationLinux BasicsLinux Tips & TricksScriptingShell ScriptsUnix/Linux Beginners
Tr Command In Linux Explained With Examples
By KarthickBy Karthick 7.8K viewsThe real power of Linux is there are many programs/utilities created to make our…
- Bash scriptingBASHLinuxLinux BasicsLinux CommandsScriptingShell ScriptsUnix/Linux Beginners
Bash Scripting – While And Until Loop Explained With Examples
By KarthickBy Karthick 5.6K viewsBash supports three types of loops, namely for loop, while loop and until loop. In this guide, we will learn about while and until loops.
- Bash scriptingBASHLinuxLinux BasicsLinux CommandsLinux Tips & TricksScriptingShell ScriptsUnix/Linux Beginners
Bash Scripting – For Loop Explained With Examples
By KarthickBy Karthick 4.4K viewsLoops are useful for automating repetitive tasks in Bash shell scripting. In this guide, we will learn about “for loop” with examples.
- Bash scriptingBASHLinuxLinux AdministrationLinux BasicsLinux CommandsScriptingShell ScriptsUnix/Linux Beginners
Bash Scripting – Functions Explained With Examples
By KarthickBy Karthick 10.1K viewsIn Bash shell scripting, functions are ways to group the set of instructions together…
- Bash scriptingBASHBash TipsFAQLinuxLinux AdministrationLinux BasicsLinux CommandsLinux Tips & TricksUnix/Linux Beginners
Bash Echo Command Explained With Examples In Linux
By KarthickBy Karthick 4.9K viewsThis guide explains what is bash echo command and its usage in scripts with examples.