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