I have an input file in this format :
C^3^^^6036^1^19920401^39991231
C^3^^^52604^1^20021017^39991231
E^1^^^2224^6036^1
E^1^^^7187^52604^1
E^12^^^2224^6036^27083^20021129^1^20021129^^^706895^2619028^
E^12^^^2224^6036^27085^20021203^1^20021203^^^1964367^4583395^
E^15^^^7187^52604^27082^20021121^1^20021121^^^21764706^82080711^
E^20^^^27084
What I need to do is for any lines that start with E and the 2nd field is between 2-19 then remove field 5.
Thanks in advance,
Mark.
C^3^^^6036^1^19920401^39991231
C^3^^^52604^1^20021017^39991231
E^1^^^2224^6036^1
E^1^^^7187^52604^1
E^12^^^2224^6036^27083^20021129^1^20021129^^^706895^2619028^
E^12^^^2224^6036^27085^20021203^1^20021203^^^1964367^4583395^
E^15^^^7187^52604^27082^20021121^1^20021121^^^21764706^82080711^
E^20^^^27084
What I need to do is for any lines that start with E and the 2nd field is between 2-19 then remove field 5.
Thanks in advance,
Mark.