ref: f494dcaba37b0cade9b87f7cf4ba6bbff36c9b66 dir: /testdir/t.in3/
{ x[NR] = $0 } END { for (i in x) if (x[i] ~ /shen/) break print i, x[i] }