Hi there,I need to extract part of text between /pat1/ and /pat2/ but /pat2/ may appear and may not,
awk '{if (/pat2/) /pat1/, /pat2/ {print}' filename does not work. How to do that in shell?
Regards, igor
Hi there,I need to extract part of text between /pat1/ and /pat2/ but /pat2/ may appear and may not,
awk '{if (/pat2/) /pat1/, /pat2/ {print}' filename does not work. How to do that in shell?
Regards, igor