awk 'BEGIN {
    for (i = 0; i < 10; i++)
        print "i=" i;
}'

#Powers of two between 1 and 100

awk 'BEGIN {
 for (i = 1; i <= 100; i \*= 2)
 print i
}'
Comments