while (( CNT < 200 ))
do
run_program >> out.txt
(( CNT = $CNT + 1 ))
done
==============================
">>" syntax is required to append to file,otherwise it will keep only the latest record.
CNT = $CNT + 1
"$CNT" MUSTbe used on the right side of the "=".
"Long live king Moshiach !"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.