by A Watcher <stocksami@[EMAIL PROTECTED]
>
Mar 20, 2008 at 09:21 AM
On Mar 20, 7:55 am, problems@[EMAIL PROTECTED]
wrote:
> It seems to me that sed & awk are single line based ?
>
> I want to delete blocks of text which look like:
> <opening pattern>
> <2 to 5 lines>
> <closing pattern>
>
> If I use the <2 to 5 lines>, I can avoid deleting all the good
> stuff, up to the 'next' <closing pattern> in case the assumed
> <closing pattern> is missing/undetected.
>
> Thanks for any feedback,
>
> == Chris Glur.
ex is well suited for this kind of edit. ex is the command line part
of vi (what you type at the colon). I'm busy right now but if you
google
ex edit tutorial
you should see how to use it.