Simple Array Example in Shell Script

array output

Array stores the number of values having the same data type. Instead of creating number of variables to store values, one array can be created and multiple values can be stored in that particular array. Integers and Strings are two different data types thus ’1′ and ‘Chris’ cannot be in a same array. Newer version [...]

Create a HTML Document using shell script in Linux

shell script to create html document

You can actually create a HTML document using the shell script. If you are tired to see the output of your command in the terminal, you can redirect your output to the HTML document. This will allow you to see the output in the web browser like the website. I will assume, you know the [...]

Global variable and export command in shell script

Global Variable in shell script

Variable holds a value and have a name. We have already declared lots of variables and see how they worked. If you don’t know what I am talking about check out our shell scripting section and for the detail variable talks, see variables in shell script. Those variables are the local variables, which means variables [...]

Shell Script Looping: while, until, for

while loop in shell script

Loop or iteration is repeats certain instructions again and again until the given condition is true. The block of code under the loop is executed repeatedly until the condition is true. There are three kinds of loop: while, until and for. If you are unfamiliar with the shell scripts, first look our previous tutorial on [...]