Tag Archives: Loops

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 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 »