in reply to Re^3: Printing line before matching expression
in thread Printing line before matching expression

compared to other proposals is the pushing and shifting which involves a lot of copying data around.

I was thinking about this kind of issue: Shift, Pop, Unshift and Push with Impunity!

  • Comment on Re^4: Printing line before matching expression