Some configuration and output text formats contain sections like the following:
foo:
value1
value2
bar:
value 3
In this article, two scripts are presented that print all consecutive indented lines that follow a non-indented line that matches a search pattern given by a regular expression.
This means, given the single argument foo and the standard input above, the scripts should
- determine the line that matches foo and
- print the following two lines, but no other lines.
Also, the indentation of the printed lines should be removed.






















