AWK:在线文章http://www.grymoire.com/Unix/Awk.html
Print every line between lines containing the words BEGIN and END. (No action defaults to print).
awk '/BEGIN/,/END/' FILE
SED:http://www.grymoire.com/Unix/sed.html
命令p可以打印范围文本。
sed -n '/BEGIN/,/END/p' FILE