You're viewing a comment by RenaudD and its responses.
You're viewing a comment by RenaudD and its responses.
I am being sponsored by Syntress! They bought me an amazing dedicated server to run catonmat on. If you're looking web services, I highly recommend the Syntress guys!
I love to read science books. They make my day and I get ideas for awesome blog posts, such as Busy Beaver, On Functors, Recursive Regular Expressions and many others.
Take a look at my
Amazon wish list, if you're curious about what I have planned reading next, and want to surprise me. :)
If you are interested in advertising on catonmat.net, contact me.
Free tools for coding on Vietstarsoft.com.
Programming homework help.


I am a sed addict and your nice site won't help me to cure. I love the
:).
Maybe this will interest you :
Sometimes you have to print blocks of lines that contains a special string. For instance if filename contains :
and you would like to get only the blocks that contain 'baz' that is :
I do sthg close to it that way :
I said 'close to it' because unfortunately this command prints a bit too many empty lines before the selected blocks but generally I don't mind. Anyway if you find a way to straighten it I would be delighted to know it.
Note : you have to make sure the last line of filename is an empty line otherwise the last block won't be processed :(
Thanks again for the site !
PS sorry I am not very talented for HTML, I hope all this will print correctly
Reply To This Comment