The below example has some fancy name in the programming community, but i cant remember what it is
But how do you enter one statement if a number is a even number and another if it isint? Do bash have a function which you can feed the number and it then says if a number is even or not.
Thanks on advance.Code:i="1" ##The loop is endless while [ ! $i -eq 1 ] doif $i -eq 1,3,5,7,9,11 and so on then do something elif $i -eq 2,4,6,8,10,12 and so on then do something elsedone