A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
6
Task/Loops-Foreach/AWK/loops-foreach-1.awk
Normal file
6
Task/Loops-Foreach/AWK/loops-foreach-1.awk
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
BEGIN {
|
||||
split("Mary had a little lamb", strs, " ")
|
||||
for(el in strs) {
|
||||
print strs[el]
|
||||
}
|
||||
}
|
||||
3
Task/Loops-Foreach/AWK/loops-foreach-2.awk
Normal file
3
Task/Loops-Foreach/AWK/loops-foreach-2.awk
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
for(i=1; i <= length(strs); i++) {
|
||||
print strs[i]
|
||||
}
|
||||
5
Task/Loops-Foreach/AWK/loops-foreach-3.awk
Normal file
5
Task/Loops-Foreach/AWK/loops-foreach-3.awk
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# This will not work
|
||||
BEGIN {
|
||||
for (l in "apples","bananas","cherries") {
|
||||
print "I like " l
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue