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 »