if you compare with my required output file , it had tab spacing between the fields which is important for further parsinng.
Here is the sample output required.
Code:
String000002 GeneWise CW 48945 49354 . - 0 Pt=PEQU_00004;
String000002 LEN NA 52125 52604 . - . PID=PEQU_00005;lvid_id=PEQ_28708;
String000002 LEN CW 52125 52604 . - 0 Pt=PEQU_00005;
String000002 WEise NA 66200 66667 . - . PID=PEQU_00006;lvid_id=Os03t0797100-00-D1363;Shift=0;
String000002 WEise CW 66200 66667 . - 0 Pt=PEQU_00006;
String000002 GUST NA 90829 91128 . + . PID=PEQU_00007;lvid_id=A00088;
String000002 GUST CW 90829 91128 . + 0 Pt=PEQU_00007;
String000002 LEN NA 104627 107284 . - . PID=PEQU_00008;lvid_id=PEQ_36749;
String000002 LEN CW 104627 105584 . - 1 Pt=PEQU_00008
;
Here is code result
Code:
String000002 GeneWise CW 48945 49354 . - 0 Pt=PEQU_00004;
String000002 LEN NA 52125 52604 . - . PID=PEQU_00005;lvid_id=PEQ_28708;
String000002 LEN CW 52125 52604 . - 0 Pt=PEQU_00005;
String000002 WEise NA 66200 66667 . - . PID=PEQU_00006;lvid_id=Os03t0797100-00-D1363;Shift=0;
String000002 WEise CW 66200 66667 . - 0 Pt=PEQU_00006;
String000002 GUST NA 90829 91128 . + . PID=PEQU_00007;lvid_id=A00088;
String000002 GUST CW 90829 91128 . + 0 Pt=PEQU_00007;
String000002 LEN NA 104627 107284 . - . PID=PEQU_00008;lvid_id=PEQ_36749;
String000002 LEN CW 104627 105584 . - 1 Pt=PEQU_00008;
It did the replacing but the tab spacing is required for further parsing.
is it possible to retain the format of file by only replacing using sed or awk.