Hi
I have a script that that needs the for loop to work on several items in a directory alas using
does not work.
I want to make the code more parallel
ie
from
Code:
for i in `seq $start $finish` ; do
command _something_ending_in_$i
done
to something like this
Code:
for j in ` seq $start $increment $finish ` ; do
for i in `seq $I_start $j ` ; do
command _something_ending_in_$i
Quote:
some code needs to be added here
|
done
done
Quote:
$j should always be $increment greater than $I_start
|
I experimented with
(( )) ARITHMETIC EVALUATION
to perform the job but it gets hard to understand and maintain.
Is my algorithm bad ??