Hi,
I have a file of form
A121
bbb
ccc
A123
dd
12345
ddd
A134
and I need to be able to extract all lines between the 2 lines which start with A and contain the value 12345 between them. However there will be other data later starting with A and there may be lines containing ( but not starting with) also throughout the file
Does anybody have any ideas?
I have a file of form
A121
bbb
ccc
A123
dd
12345
ddd
A134
and I need to be able to extract all lines between the 2 lines which start with A and contain the value 12345 between them. However there will be other data later starting with A and there may be lines containing ( but not starting with) also throughout the file
Does anybody have any ideas?