Tag: BASH Programming
The following is probably the simplest Database implementation using BASH programming language. The BASH database provides four basic functions: db_clear() to truncate the database. The db_set() takes two parameters …
Based on the calc function defined in BASH via AWK, we can perform floating point computation in BASH. The $RANDOM variable gives a psuedo random integer that is within …
June 23, 2021
algorithms, BASH, bash script, Combination, math, Permutation, programming languages, Recursion, recursive, string
Swap Two Characters in BASH In BASH, we can use “${#string}” to get the length of a string. And in a function, we use “local” keyword to declare local …
As you may know, the famous factorial can be done in Recursion via: where BASH supports function declaration and recursion – just like other modern programming language. See below …
In Linux, we have service process controller which can be used to start, stop and restart a particular registered service. For example: $ sudo service mysql stop $ sudo …