, grep . , Unix . , sed, . awk, , - , , .
GNU awk , :
gawk 'BEGIN {RS="pattern"} {print RT, FILENAME; exit}' filename
RS ( ) . RT - , RS. FILENAME . exit . , awk . , .
, find xargs , -:
find . -type f -print0 | xargs -0 gawk 'BEGIN {RS="pattern"} {print RT, FILENAME; if (RT != "") exit}'
( ) , , , .
, : , gawk , , ( , 490 .)