in reply to Using Expressions

The trick is to use 2 newlines as a separator. Assuming Error lines start with "E", this one liner would do the trick:
perl -nE 'BEGIN{$/="\n\n"}; next unless m/^E/; print "$_"' your-file-h +ere.txt

        "You're only given one little spark of madness. You mustn't lose it."         - Robin Williams

Replies are listed 'Best First'.
Re^2: Using Expressions
by shmem (Chancellor) on May 03, 2015 at 10:33 UTC
    The trick is to use 2 newlines as a separator.

    That's called paragraph mode, and there's a command line switch for that:

    perl -n00 -E 'print if m/^E/' your-file-here.txt
    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'