我想从 UNIX 命令行中删除前一行中已存在的行。我的文件中有以下数据。
<xref id="gi_525506931_ref_NP_001266519.1__brain_aromatase"/>
<entry ac="IPR002401" desc="Cytochrome P450, E-class, group I" name="Cyt_P450_E_grp-I" type="FAMILY">
<entry ac="IPR001128" desc="Cytochrome P450" name="Cyt_P450" type="FAMILY">
<entry ac="IPR001128" desc="Cytochrome P450" name="Cyt_P450" type="FAMILY">
<entry ac="IPR001128" desc="Cytochrome P450" name="Cyt_P450" type="FAMILY">
所以,它应该看起来像这样:
<xref id="gi_525506931_ref_NP_001266519.1__brain_aromatase"/>
<entry ac="IPR002401" desc="Cytochrome P450, E-class, group I" name="Cyt_P450_E_grp-I" type="FAMILY">
<entry ac="IPR001128" desc="Cytochrome P450" name="Cyt_P450" type="FAMILY">