,----Quote:>For example, do a "man sed" and try to find just ONE example.
| $ man sed
[...]
| EXAMPLES
| Example 1: An example sed script
|
| This sed script simulates the BSD cat -s command, squeez-
| ing excess blank lines from standard input.
|
| sed -n '
| # Write non-empty lines.
| /./ {
| p
| d
| }
| # Write a single empty line, then look for more empty lines.
| /^$/ p
| # Get next line, discard the held <newline> (empty line),
| # and look for more empty lines.
| :Empty
| /^$/ {
| N
| s/.//
| b Empty
| }
| # Write the non-empty line before going back to search
| # for the first in a set of empty lines.
| p
| '
[...]
--
okay, have a sig then