有txt文本如下,想提取所有含字符“>”的行,写入另一个txt。
>gi|156339812|ref|XP_001620269.1| hypothetical protein NEMVEDRAFT_v1g148627 [Nematostella vectensis]
QELDELLEEEKLIGVPLLVFANKQDLMNAATPAEISSNLGLNTIRSRGWQIQGCSALTGEGVQVSL
>gi|290995306|ref|XP_002680236.1| predicted protein [Naegleria gruberi]
MLVIWANKQDLPNAVVDVDELTKILQLNSIKQTSYIQPCSAVRGTGLYEGLEWISNNL
>gi|677097050|gb|KFP32535.1| ADP-ribosylation factor-like 5A, partial [Colius striatus]
DLKKAGLLIFANKQDVKECMTVAEISQFLKLTSIKDHQWHIQACCALTGEGLCQGLE
>gi|290995306|ref|XP_002680236.1| predicted protein [Naegleria gruberi]
MLVIWANKQDLPNAVVDVDELTKILQLNSIKQTSYIQPCSAVRGTGLYEGLEWISNNL
>gi|537203262|gb|ERE79577.1| ADP-ribosylation factor-like protein 3 [Cricetulus griseus]
MVQELTELLEEEKLSCVPVLIFANKQDLLTAAPASEIAEGLNLHTIRDRVWQIQSCSALTGEGVQDGMNWVCKNVNAKKK
>gi|156339812|ref|XP_001620269.1| hypothetical protein NEMVEDRAFT_v1g148627 [Nematostella vectensis]
QELDELLEEEKLIGVPLLVFANKQDLMNAATPAEISSNLGLNTIRSRGWQIQGCSALTGEGVQVSL
>gi|290995306|ref|XP_002680236.1| predicted protein [Naegleria gruberi]
MLVIWANKQDLPNAVVDVDELTKILQLNSIKQTSYIQPCSAVRGTGLYEGLEWISNNL
>gi|677097050|gb|KFP32535.1| ADP-ribosylation factor-like 5A, partial [Colius striatus]
DLKKAGLLIFANKQDVKECMTVAEISQFLKLTSIKDHQWHIQACCALTGEGLCQGLE
>gi|290995306|ref|XP_002680236.1| predicted protein [Naegleria gruberi]
MLVIWANKQDLPNAVVDVDELTKILQLNSIKQTSYIQPCSAVRGTGLYEGLEWISNNL
>gi|537203262|gb|ERE79577.1| ADP-ribosylation factor-like protein 3 [Cricetulus griseus]
MVQELTELLEEEKLSCVPVLIFANKQDLLTAAPASEIAEGLNLHTIRDRVWQIQSCSALTGEGVQDGMNWVCKNVNAKKK