Code:
sed 's/.*\([GEF]_Port {.*}\).*$/\1/' testfile
If the output looks OK, you can add the -i for in place editing and don't need to redirect to a second file.
Vim is based on ed regular expressions, as is sed:
:%s/.*\([GEF]_Port {.*}\).*$/\1/
So the only difference is the line range which precedes the command. The % means to search & replace on every line.
You could modify the current line and the next 9 lines with
:.,+9s/.*\([GEF]_Port {.*}\).*$/\1/