Bash Loop add more to loops -
i tried doing while
well, doesn't seem work centos version 7. can please tell me i'm doing wrong? i'm trying add 1 loop if not meet greater logic. kind of can on appreciated!
clips=200 (( i=0 ; i<clips ; i++ )) if(("$cutlength">8)); echo "good" else echo "redo, adding 1 loop" i=$(($i-1)) fi
this should work if other things ok:
clips=200 (( i=0 ; i<clips ; i++ )); if (( cutlength > 8 )); echo "good" else echo "redo, adding 1 loop" ((i--)) fi done
Comments
Post a Comment