Bash Bash if..else Statement In this tutorial, we will walk you through the basics of the Bash if statement and show you how to use it in your shell scripts. Decision making is one
Bash Bash Arrays Arrays are one of the most used and fundamental data structures. You can think of an array is a variable that can store multiple variables within it. In this article,
Bash How to Read a File Line By Line in Bash When writing Bash scripts, you will sometimes find yourself in situations where you need to read a file line by line. For example, you may have a text file containing
Bash Linux Sleep Command (Pause a Bash Script) sleep is a command-line utility that allows you to suspends the calling process for a specified time. In other words, the sleep command pauses the execution of the next command
Bash Bash Heredoc When writing shell scripts you may be in a situation where you need to pass a multiline block of text or code to an interactive command, such as tee, cat,
Bash How to Compare Strings in Bash When writing Bash scripts you will often need to compare two strings to check if they are equal or not. Two strings are equal when they have the same length
Bash Echo Command in Linux with Examples The echo command is one of the most basic and frequently used commands in Linux. The arguments passed to echo are printed to the standard output. echo is commonly used
Bash Bash Concatenate Strings One of the most commonly used string operations is concatenation. String concatenation is just a fancy programming word for joining strings together by appending one string to the end of
Bash How to Check if a File or Directory Exists in Bash Many times when writing Shell scripts, you may find yourself in a situation where you need to perform an action based on whether a file exists or not. In Bash,
Bash Bash until Loop Loops are one of the fundamental concepts of programming languages. Loops are handy when you want to run a series of commands over and over again until a specific condition
Bash Bash Case Statement Bash case statements are generally used to simplify complex conditionals when you have multiple different choices. Using the case statement instead of nested if statements will help you make your
Bash Bash Functions A Bash function is essentially a set of commands that can be called numerous times. The purpose of a function is to help you make your bash scripts more readable
Bash How to Create Bash Aliases Do you often find yourself typing a long command on the command line or searching the bash history for a previously typed command? If your answer to any of those
Bash Bash while Loop Loops are one of the fundamental concepts of programming languages. Loops are handy when you want to run a series of commands a number of times until a particular condition