Bash calculate and Arithmetic Operators
When the shell encounters $(( expression )), it evaluates expression and places the result on the command line; expression is...
bash / FAQ / Shell Scripting
by Ramakanta · Published December 20, 2012 · Last modified November 20, 2016
When the shell encounters $(( expression )), it evaluates expression and places the result on the command line; expression is...
bash / Linux / Must Know / Scripting Languages / Shell Scripting
by Ramakanta · Published December 20, 2012 · Last modified December 9, 2014
When a command or series of commands needs to be repeated, it is put inside a loop. The shell provides...
bash / Linux / Shell Scripting
by Ramakanta · Published December 17, 2012 · Last modified November 20, 2016
The autostart variable is set to yes if the first parameter passed to the script was -a. This variable was...
You can do shell script run in background using following steps. nohup and disown a process As standard, when a...
The fact that arrays are structurally different from other variables means that some new syntax is required to manipulate arrays....
GLOBIGNORE is a special variable which is used by the globbing feature of bash, to omit certain patterns from a...
SHELLOPTS is similar to BASHOPTS; it is a list of -o options set. So if you set -o vi, then...
BASHOPTS is new in bash 4.1. It is a list of the enabled shell options (shopts). It gives the same...
bash / FAQ / Shell Scripting
by Ramakanta · Published December 8, 2012 · Last modified February 11, 2015
The most basic method of reading the contents of a file is a while loop with its input redirected: while...
bash / FAQ / Scripting Languages / Shell Scripting
by Ramakanta · Published December 8, 2012 · Last modified August 9, 2014
There are no direct parameter expansions to give either the first or last character of a string, but by using...
Advertisement
Advertisement
Advertisement