You're viewing a comment by AwkNewbie and its responses.

AwkNewbie Permalink
October 03, 2010, 21:24

Great awk tips. Now I have a question. What should be the command if I want to delete a range pattern, ie. if I want to delete all the lines from [Pattern2] to the first blank line for the file given below:

[Pattern1]
Some lines
Goes here

[Pattern2]
Some more lines

[Pattern3]
Goes on...

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the first letter of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.