Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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]
|
||||
}
|
||||
}
|
||||
6
Task/Loops-Foreach/AWK/loops-foreach-2.awk
Normal file
6
Task/Loops-Foreach/AWK/loops-foreach-2.awk
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
BEGIN {
|
||||
n = split("Mary had a little lamb", strs, " ")
|
||||
for(i=1; i <= n; i++) {
|
||||
print strs[i]
|
||||
}
|
||||
}
|
||||
6
Task/Loops-Foreach/AWK/loops-foreach-3.awk
Normal file
6
Task/Loops-Foreach/AWK/loops-foreach-3.awk
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# This will not work
|
||||
BEGIN {
|
||||
for (el in "apples","bananas","cherries") {
|
||||
print "I like " el
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue