I am trying to delete x02 character from a file, I can easily delete x02 from a file using sed -i 's/\x2//g'
command. Problem here is I don't want to delete x02 character which immediately starts with I
. Except that I want to delete all other x02 characters.
Example:
File data:
I^A12^Agop^Bal^BI^A3^B^B4^Aramu^BI^A56^Asubbu^BI^A78^Asai^B
Expected output:
I^A12^Agopal^BI^A34^Aramu^BI^A56^Asubbu^BI^A78^Asai^B