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