awk 'BEGIN {
while (a < 10) {
print "- " " concatenation: " a
a++;
}
}'
#do…while
awk '{
i = 1
do {
print $0
i++
} while (i <= 5)
}' /etc/passwd
Comments
awk 'BEGIN {
while (a < 10) {
print "- " " concatenation: " a
a++;
}
}'
awk '{
i = 1
do {
print $0
i++
} while (i <= 5)
}' /etc/passwd