Brief tutorial describing how to do string comparisons. Recently updated thanks to comments from our users.
It is often necessary under unix/linux to wait for certain processes to complete before running other processes. At best this can cause needless delays and wasted time, while in the worst cases someone may actually forget to run some final processing.
This script will create an input screen in BASH that allows the user to enter information just as they would in a window. This is to show the use of simple functions as well as the tput command. The command “tput cup” allows the developer to place the cursor anywhere on the screen. There are […]
This Tech-Recipes tutorial contains a series of operations on an array. We can use these functions to implement a queue or a stack that can be of better use to us.
Sometimes we need to remove one element from an array. This Tech-Recipes tutorial contains an example.
The bash shell allows a number of methods for accessing elements of variable arrays. This tech-recipe demonstrates some of these techniques.
Having an array of variables is of no use unless you can use those values somehow. This tech-recipe shows a few methods for looping through the values of an array in the bash shell.
The use of array variable structures can be invaluable. This recipe describes several methods for declaring arrays in bash scripts.
Writing functions can greatly simplify a program. If a chunk of code is used multiple times in different parts of a script, the code can be enclosed within a function and run using only the function name.