gawk example

gawk 'BEGIN{FS="[()]";print "begin"}{if (NR > 2 && NR < 5) print $1 $2} END {print "end"}' test.txt