Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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