22 Nov
2005
22 Nov
'05
12:35
daniel parkes writes:
i have a script where you pass paramaters to it sor of #./script fred mike peter sony
inside the script i have a load of tests but what i need is that the tests are run on all the paramaters that are passed at command line, so what im looking for is something like:
for EACH PARAMETER do test test test test done
but i cant figure out how can i pass the paramaters one by one to the test fields.
for i in $* do echo $i done Will step through each command line arg and display it. -Ti