version 1.0.0, 2013-10-19 : Initial version
Extract lines between 2 specific patterns
A perl one-liner to extract lines between 2 given patterns including the lines where the pattern stands.This shell command returns all lines between 2 given patterns including the lines where the pattern stands.
Here the patterns are "retium enim" for the begining and "porta massa" for the end.
perl -ne 'print if /pretium enim/../porta massa/' text_file.txt