all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
11
Task/Substring/AWK/substring.awk
Normal file
11
Task/Substring/AWK/substring.awk
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
BEGIN {
|
||||
str = "abcdefghijklmnopqrstuvwxyz"
|
||||
n = 12
|
||||
m = 5
|
||||
|
||||
print substr(str, n, m)
|
||||
print substr(str, n)
|
||||
print substr(str, 1, length(str) - 1)
|
||||
print substr(str, index(str, "q"), m)
|
||||
print substr(str, index(str, "pq"), m)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue