Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Can awk, sed ma...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 2196 of 2236
Post > Topic >>

Can awk, sed match mult-line patterns ?

by problems@[EMAIL PROTECTED] Mar 20, 2008 at 10:55 AM

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.




 6 Posts in Topic:
Can awk, sed match mult-line patterns ?
problems@[EMAIL PROTECTED  2008-03-20 10:55:05 
Re: Can awk, sed match mult-line patterns ?
A Watcher <stocksami@[  2008-03-20 09:21:32 
Re: Can awk, sed match mult-line patterns ?
Ted Davis <tdavis@[EMA  2008-03-20 14:55:29 
Re: Can awk, sed match mult-line patterns ?
notbob <notbob@[EMAIL   2008-03-20 20:12:01 
Re: Can awk, sed match mult-line patterns ?
Ed Morton <morton@[EMA  2008-03-20 17:26:02 
Re: Can awk, sed match mult-line patterns ?
"Rajan" <svr  2008-03-23 19:28:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 13:01:35 CDT 2008.