Search:
www.rocket99.com : Technical Guides Sybase Oracle UNIX Javascript


Technical Guides
Sybase
Oracle
UNIX
Javascript




After Work

Highlife Adventures
The best club in Chicago
for Chicago Singles is Highlife Adventures!


Jersey Girl Shirts
Are you looking for a
Jersey Girl T-Shirt ?



Kyoto Sushi
in Chicago, on Lincoln Ave.
Moody's Pub
in Chicago, has great burgers
Skylark
in Chicago, on Halsted .. excellent Friday fish fry!


UNIX » Shell » »

Looping in a script, via a counter

     




Looping, with counter, works in sh, bash, and ksh.
Loops are done inclusive of start and end numbers .. so
if you pass 1 and 6 as parms .. it will loop 6 times.



Syntax is difficult to remember .. bookmark this page.







#!/bin/ksh

x_start=$1
x_end=$2



while test $x_start -le $x_end ; do



echo "Processing number: $x_start"

/export/home/tester/test_runner.ksh $x_start



x_start=`expr $x_start + 1`



done











UNIX : Related Topics


Sybase Web Site
Sybase Mobile Web Site
Oracle Web Site





Site Index About this Guide to Sybase, Oracle, and UNIX Contact Us Advertise on this site




Copyright © 2008 Citisoft Inc All Rights Reserved.