BASH For loop as an example from a PHP tutorial | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

BASH For loop as an example from a PHP tutorial

Both examples do the same, but the second is more like PHP. #!/bin/bash MAX=5 for A in `seq 0 $MAX` do echo "Value of a : $A" done #!/bin/bash MAX=6 for ((A=0; A<$MAX; A++)) do echo "Value of a : $A" done

23rd Oct 2018, 1:46 PM
JaMi
JaMi - avatar
2 Answers
+ 1
You might want to actually make a code out of this or make it a post.
30th Oct 2018, 6:40 PM
Uni
Uni - avatar
0
It is only for someone who looks for bash.
30th Oct 2018, 8:47 PM
JaMi
JaMi - avatar