You're replying to a comment by Peteris Krumins.
You're replying to a comment by Peteris Krumins.
I am being sponsored by Syntress since 2007! They bought me an amazing dedicated server to run catonmat on. If you're looking web services in Chicago area, 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. :)


Here is how:
awk -vp=1 '/ABC/,/DEF/ { p=0; if (/ABC/ || /DEF/) p=1 } p'The
-vp=1sets variablep(p for print) to1before the awk script starts.If the range
/ABC/,/DEF/is matched, then setpto0(don't print). However if it's the/ABC/or/DEF/, then setpto1(print).Then evaluate
p. If it's true, awk prints the current line.Reply To This Comment