Basic Linux Shell Scripting Language : ‘While’ Loops
In the previous article entitled “Basic Linux Shell Scripting Language : Introduction to ‘For’ Loops“, we have observed how a loop works. Loop is nothing but a control flow statement which executes a block of commands repeatedly till certain condition stays true, once the condition becomes false, the loop is terminated.
In this article, I will explain Basic syntax of ‘While’ loop along with some examples of ‘While’ loop usage. If you are new to Shell Scripting, I recommend that, you should read my article – Getting Started – Linux Shell Scripting Language.
Here we go!
Read more at YourOwnLinux
Basic Linux Shell Scripting Language : Introduction to ‘FOR’ Loops
Many times, it is necessary to execute a certain set of commands repeatedly for some number of times. For this purpose, one needs to use looping statements like‘For’, ‘While’ and ‘Until’. These statements run a block of code for multiple times. In this article, I will try to elaborate on Basic syntax of For loops with some examples of For loop usage.
Here we go!
Read more at YourOwnLinux
Getting Started : Linux Shell Scripting Language – III
This is the third article on Basic Linux Shell Scripting Language. Before this article, I had published two articles on the said topic, which are:
I would recommend that, before you go through this article directly, please read this article so that it would become easier for you to understand.
In this article on Basic Linux Shell Scripting Language, we will be dealing with Mathematics. I will try to cover how basic operations in Mathematics are implemented in Shell Scripting along with some scripts which incorporate their uses. Most of these scripts are self explanatory.
Here we go !
Read more at YourOwnLinux
Getting Started : Linux Shell Scripting Language – II
In the previous article on Linux Shell Scripting Language, we had already covered following points:
- What is a Shell?
- Types of Linux Shell- Bourne Shell, C Shell, Korn Shell and the BASH Shell (Bourne Again Shell).
- Shell Programming – The Basics
- Writing the First Shell Script – Hello World
In this article, we would write some more basic shell scripts that will give you much more comfort while writing more complex scripts. Please note that, this article is an extension of my previous article “Getting Started – Linux Shell Scripting Language“.
So, without much a do, lets start the show.
Read more at YourOwnLinux
Getting Started : Linux Shell Scripting Language – I
What is a Shell..?
Most of us know the fact that computer understands the language of 0’s and 1’s i.e. Binary language. Whenever we enter any command in the text format, it gets translated to computer-readable form and the processed output which is in binary format gets converted to human-readable form and gets displayed on the screen in the form of texts. Shell performs all these translations.
The Linux/Unix shell is a command-line interface which lets its users to interact with the operating system by accepting commands from the users through the keyboard; the shell executes the commands and prints the output on the screen. Unlike the graphical environment (GUI based) that we would normally observe in most of the present computers, the interaction is purely text-based and being command-oriented this kind of interface is called “Command Line interface or CLIâ€. Before GUI environments were introduced in computer systems, CLI was the only way using which an user could interact and operate the computer system.
Read more at YourOwnLinux
