I need to run a process a large number of times.
In /home/runx, I have process X, which accesses a file X.ini.
X.ini contains 3 variables, as follows :
X_date=ccccmm
X_location=aaa
X_type= t
where date will be 200501 thru 200611
location will be aaa, bbb, ccc, or ddd
type will be t, q, or r.
So there will be 23 * 4 * 3 passes i.e. 276 passes
Each pass will output a file in directory /home/print
Can someone help me with the script please ?
You have only provided some information. You have not mentioned what to do with them.
Also, you mention 'Each pass will output a file in the directory /home/print'. What will the name of file be like? Something to do with those combinations ?
To give you an idea, here is a small snippet
#! /bin/ksh
for d in 200501 200502 200503 200504
do
for l in aaa bbb ccc ddd
do
for type in t q r
do
:> /home/print/$d_$l_$type
done
done
done