blob: fc09f789ea676e9acb96c5a96326f977be50fa2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
BEGIN {
x = y = "s"
a = (getline x y)
print a, x
a = (getline x + 1)
print a, x
a = (getline x - 2)
print a, x
cmd = "echo A"
a = (cmd | getline x y)
close(cmd)
print a, x
cmd = "echo B"
a = (cmd | getline x + 1)
close(cmd)
print a, x
cmd = "echo C"
a = (cmd | getline x - 2)
close(cmd)
print a, x
cmd = "echo D"
a = cmd | getline x
close(cmd)
print a, x
}
|