in reply to Re: multi-line match
in thread multi-line match
The easiest way would be to use two passes. The first adds a blank line before each header:
perl -ple"$_ = qq[\n] . $_ if /^*header/" infile >modified
NB! Different quotes on *nix!
The second pass is just which ever of the earlier answers you like best.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: multi-line match
by pdotcdot (Acolyte) on Aug 08, 2003 at 09:33 UTC |