all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
2
Task/Variables/AWK/variables-1.awk
Normal file
2
Task/Variables/AWK/variables-1.awk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
a = 1 # Here we declare a numeric variable
|
||||
fruit = "banana" # Here we declare a string datatype
|
||||
1
Task/Variables/AWK/variables-2.awk
Normal file
1
Task/Variables/AWK/variables-2.awk
Normal file
|
|
@ -0,0 +1 @@
|
|||
x = y = z = 3
|
||||
7
Task/Variables/AWK/variables-3.awk
Normal file
7
Task/Variables/AWK/variables-3.awk
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
function foo(j k) {
|
||||
# j is an argument passed from caller
|
||||
# k is a dummy not passed by caller, but because it is in the
|
||||
# argument list, it will have a scope local to the function
|
||||
k = length(j)
|
||||
print j "contains " k " characters"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue