awk/testdir/t.intest2

17 lines
237 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
{
line = substr($0, index($0, " "))
print line
n = split(line, x)
x[$0, $1] = $0
print x[$0, $1]
print "<<<"
for (i in x) print i, x[i]
print ">>>"
if (($0,$1) in x)
print "yes"
if ($1 in x)
print "yes"
else
print "no"
}