personball@vostro:SHELL$find . -type f -exec awk 'BEGIN{tmp=0;}{if(tmp&&($0~/^$/))print FILENAME":""line:"FNR":"$0;tmp=($0~/^if/)}' {} ; ./aaa:line:4: personball@vostro:SHELL$cat -n aaa 1 2 3 if(true) 4 5 { 6 7 } 8 9 10 if(true) 11 { 12 13 } personball@vostro:SHELL$