After Work
The best club in Chicago
for Chicago Singles is
Highlife Adventures!
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
|
|
|
|