I have two questions:
Question 1
From the following I want to print from $5 to the end of the line.
The script searched for/ Remarks on/ but then I only want to print from FRAC....SI /15. The length of this field will change each time as will the 001 that preceeds the statement.
input:
Remarks on PT Test 001 FRAC OIL WAS GELLED-FLUSH W/UNGELLED OIL ISIP 5900, SIP /15
Remarks on IP Test 004 ADDTV-280000 SCF NITROGEN
desired output
FRAC OIL WAS GELLED-FLUSH W/UNGELLED OIL ISIP 5900, SIP /15
ADDTV-280000 SCF NITROGEN
Question 2
The script searches for /Stages:/ And I only want to print whats on the line after Remarks:
ininput:
Stages: Remarks: TP 6200-6800
Stages: 12 stage Remarks: rerun stages 4 and 8
desired output:
TP 6200-6800
rerun stages 4 and 8
Can anyone help??
Question 1
From the following I want to print from $5 to the end of the line.
The script searched for/ Remarks on/ but then I only want to print from FRAC....SI /15. The length of this field will change each time as will the 001 that preceeds the statement.
input:
Remarks on PT Test 001 FRAC OIL WAS GELLED-FLUSH W/UNGELLED OIL ISIP 5900, SIP /15
Remarks on IP Test 004 ADDTV-280000 SCF NITROGEN
desired output
FRAC OIL WAS GELLED-FLUSH W/UNGELLED OIL ISIP 5900, SIP /15
ADDTV-280000 SCF NITROGEN
Question 2
The script searches for /Stages:/ And I only want to print whats on the line after Remarks:
ininput:
Stages: Remarks: TP 6200-6800
Stages: 12 stage Remarks: rerun stages 4 and 8
desired output:
TP 6200-6800
rerun stages 4 and 8
Can anyone help??