UNIX 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 scriptingIt 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.
Simple Menu for User Input
contributed by gevery77 on September 2, 2005 under Bourne shell scriptingThis 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.
simple function for print colorful text
contributed by hpx on June 8, 2005 under Bourne shell scriptingfunction to print text with colors(not contain all the colors)
can be extened easily
queue and stack using array
contributed by hpx on under Bourne shell scriptinghere is a series of operation on array,
we can use these functions to implement a queue or stack that can help us more
bash array operations
contributed by hpx on under Bourne shell scriptingsometimes we need to remove one element from an array
for example we remove the element 2 (third) from array
bash shell script accessing array variables
contributed by qmchenry on August 31, 2004 under Bourne shell scriptingThe bash shell allows a number of methods for accessing elements of variable arrays. This recipe demonstrates some of these techniques.
bash shell script iterate through array values
contributed by qmchenry on August 30, 2004 under Bourne shell scriptingHaving 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.
RECENT POPULAR RECIPES
- Sending multiple lines of input to a program
- View our Top Tens
TECH-RECIPES BLOGS
- Symfony Propel 1.4: New Project Workflow
- quickie: video on adding 3G modem to a Thinkpad Tablet
- modding: adding 3G to my Lenovo Thinkpad Tablet
- quick look: Lenovo Thinkpad Tablet (Honeycomb) and Pen (pics)
- design: my geek lair
- How to Delete Your Twitter Account
- Flash Error May Slow Down OS X Lion
- Mass Effect: Cannot See Mouse Pointer





