Bash Loop add more to loops

i tried doing while as well, but it doesn’t seem to work with centos version 7. can someone please tell me what i’m doing wrong? I’m just trying to add one back to the loop if it does not meet my greater than logic. Any kind of help I can get on this is greatly appreciated!

for (( i=0 ; i<clips ; i++ ))
if(("$cutlength">8)); then
echo "good"
echo "redo, adding one back to loop"

Source: bash

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.