awk/testdir/t.in3

8 lines
83 B
Plaintext

{ x[NR] = $0 }
END {
for (i in x)
if (x[i] ~ /shen/)
break
print i, x[i]
}