for i in $(seq 1 34); do ./intensity2cycle ./s_1_0001_sig2.txt.filtered ./cycle$i $i; done
Alternatively use the built-in arithmetic bash looping:for ((i=1; i<=34; i++)); do ./intensity2cycle ./s_1_0001_sig2.txt.filtered ./cycle$i $i; done
cheers, that looks like a better way of doing it.
better yet, brace expansion ...for i in {1..34}do ./intensity2cycle ./s_1_0001_sig2.txt.filtered ./cycle$i $idoneThis gives you better performance than the previous mentions; although, at 34 iterations, you won't see much of an improvement.
Post a Comment
3 comments:
Alternatively use the built-in arithmetic bash looping:
for ((i=1; i<=34; i++)); do ./intensity2cycle ./s_1_0001_sig2.txt.filtered ./cycle$i $i; done
cheers, that looks like a better way of doing it.
better yet, brace expansion ...
for i in {1..34}
do
./intensity2cycle
./s_1_0001_sig2.txt.filtered
./cycle$i $i
done
This gives you better performance than the previous mentions; although, at 34 iterations, you won't see much of an improvement.
Post a Comment