Loading...

Category: Shell Script

Array Variables

The variables in bash are scalar. From Bash 2.0 it supports Array variables i.e., it can handle multiple values at the same time. All the naming rules of Shell variables [ … ]

Arithmetic Substitution

In ksh and bash, the shell enable integer arithmetic to be to be performed.This avoids having to run an extra program such as expr or bc to do math in a shell script [ … ]

ECHO Command

The built-in echo command is an older form of printf command. Bash provides it for compatibility with almost all the shells. echo does not use a format string format like printf command It [ … ]

Shell Script Comments

We should be aware of the fact that we might not be the only person reading our code. A lot  of users and system administrators run script that were written [ … ]

Shebang

The #! Syntax used in scripts to indicate an interpreter for execution under UNIX/Linux operating systems. Most Linux shell and Perl/Python script starts with the following line. #!/bin/bashOR#!/usr/bin/perlOR#!/usr/bin/python It is [ … ]