Tag Archives: Bash

PC

How to Write Bash For Loop Array

In this tutorial we will show you how to write a bash for loop array. This command let’s your make a string and form a loop that is repeated in the output. Loops and arrays are easy to create in Linux.
To understand how to create a loop array, follow the tutorial steps given below.


read more »

PC

How to Write Bash While-Loops

In this tutorial we will show you how to write bash while loops. Linux can be used to enter commands where we can specify the number of times a loop will run. This can be done by writing a script for a bash while loop.
To understand how to create a while-loop in bash, follow the steps given below.


read more »

PC

How to Use Conditions in Bash Scripting (Bash IF Script)

In this tutorial we will show you how to write a bash if script. This allows us to add conditions to the commands we enter. Through this we can also command bash to give an alternate output.
Scripting in bash can become fairly easy once you get the hang of it. To learn how to write a Bash IF command and script follow the steps given below.


read more »

PC

How to Write Bash Sleep Script

In this tutorial we will show you how to write bash sleep script.
Over here we will demonstrate the sleep in bash script function with the date command. By entering the command the system will provide us the date and then will not provide us with the time till the sleep time is over and then will show the time once again in the output.
To understand how this can be done, follow the steps given below.


read more »

PC

How to Check if Bash Variable is a Number

In this tutorial we will show you how to check if bash variable is a number. This can be done very easily through the terminal application present in Linux where you can enter your commands and check if the output is according to your needs and expectations. You can moreover on enter letters in your code to test further if your bash is a number or not.
To understand how in Linux, in bash to check variable follow the steps given below.


read more »

PC

How to Write Bash FOR-Loops

In this tutorial we will show you how to write a Bash FOR-Loop script. A loop is basically something that repeats itself unless told to stop. Over here the Bash FOR-Loop command allows you to repeat words or numbers in a given string. In the tutorial below, the string consists of the numbers from one till ten which skip internally inside the string from a difference of three.
To understand how the bash for-loops script works look at the steps given below.


read more »

PC

What is Bash

In this tutorial we will introduce you to what is Bash in Linux.
Bash is basically a file to process commands which can be run in the Terminal window. This allows the user to write commands and actions. A Bash can also read commands from a file which is technically called a script.
Using Bash is not very difficult if you know which scripts to run and use. Follow this tutorial below to understand a basic overview of what exactly Bash present in Linux is.


read more »