Bourne/bash shell scripts: string comparison
Brief tutorial describing how to do string comparisons. Recently updated thanks to comments from our users.
Category Bourne shell scripting
A simple script that waits for a process to complete and then executes a command
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.
Category Bourne shell scripting
Simple Menu for User Input
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 [...]
Category Bourne shell scripting
A Simple Function for Printing Colorful Text
Category Bourne shell scripting
Queue and Stack Using an Array
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.
Category Bourne shell scripting
Bash Array Operations
Sometimes we need to remove one element from an array. This Tech-Recipes tutorial contains an example.
Category Bourne shell scripting
Bash Shell Script Accessing Array Variables
The bash shell allows a number of methods for accessing elements of variable arrays. This tech-recipe demonstrates some of these techniques.
Category Bourne shell scripting
Bash Shell Script Iterate Through Array Values
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.
Category Bourne shell scripting
bash shell script declaring/creating arrays
The use of array variable structures can be invaluable. This recipe describes several methods for declaring arrays in bash scripts.
Category Bourne shell scripting
Bourne/Bash Shell Script Functions
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.
Category Bourne shell scripting