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