my $count; while (<$fh_r>) { if (my $status = /START/ .. /END/) { $count++ if $status == 1; print if $count == 2; } }
In reply to Re: [Solved]Need to extract a particular block of lines between two patterns
by runrig
in thread [Solved]Need to extract a particular block of lines between two patterns
by chengchl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |