Bourne shell scripting tutorials

A simple script that waits for a process to complete and then executes a command

Contributed by bxj on April 12, 2007 under Bourne shell scripting

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.

Comments
 

Simple Menu for User Input

Contributed by gevery77 on September 2, 2005 under Bourne shell scripting

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. “tput cup” allows the developer to place the cursor anywhere on the screen. There are many more commands that tput recognizes, see the man page for more information.

Comments
 

simple function for print colorful text

Contributed by hpx on June 8, 2005 under Bourne shell scripting

function to print text with colors(not contain all the colors)
can be extened easily

Comments
 

queue and stack using array

Contributed by hpx on under Bourne shell scripting

here is a series of operation on array,
we can use these functions to implement a queue or stack that can help us more

Comments
 

bash array operations

Contributed by hpx on under Bourne shell scripting

sometimes we need to remove one element from an array
for example we remove the element 2 (third) from array

Comments
 

bash shell script accessing array variables

Contributed by qmchenry on August 31, 2004 under Bourne shell scripting

The bash shell allows a number of methods for accessing elements of variable arrays. This recipe demonstrates some of these techniques.

Comments
 

bash shell script iterate through array values

Contributed by qmchenry on August 30, 2004 under Bourne shell scripting

Having an array of variables is of no use unless you can use those values somehow. This recipe shows a few methods for looping through the values of an array in the bash shell.

Comments
 

bash shell script declaring/creating arrays

Contributed by qmchenry on under Bourne shell scripting

The use of array variable structures can be invaluable. This recipe describes several methods for delcaring arrays in bash scripts.

Comments