in reply to Re: Search between pattern and append
in thread Search between pattern and append
here $i and $j are variables which change. I am trying to search (with a one liner) between the pattern1 and pattern2 and prefix a variable.START $i MAY JUNE JULY END $j
EXPECTED RESULT:perl -ne ' print if /START $i/ .. /END $j/' file.txt
The $i and $j values change with variableSTART $i $i $j MAY $i $j JUNE $i $j JULY END $j
|
|---|