sed -e '1!b' -e '/GH/!d' file
Linux SED script find the 1st line that match pattern and delete it
echo -e "AB MN2 MN3" | sed "0,/N/{//d;}"
How to conditionally remove first line only with sed when it matches?
sed命令