Hi
if the condition is not satisfied then how to repeat the same process for n number for (eg: exactly 5 times) times then exiting the loop
Regards
Kanna
shell script
Re: shell script
Code: Select all
for i in {1..5} ; do if [ a == b ] ; then break ; fi; echo "loop count $i" ; done