I want to remove lines which exist already in the previous line from the command line in UNIX. I have the following data in a file.
<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">
So, it should look like this:
<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">