I saw this from one of the awk one-liner examples. This will print a section of the file between these two regular expressions Iowa and Montana.
awk '/Iowa/,/Montana/'
How can I modify this to tell awk to start showing lines from Iowa up to the first blank line it will see?
awk '/Iowa/,/<1st blank line>/'
Definitely I can't use " " or "/n" because it will only print the line with Iowa and the next line to this.
Sorry if this is very basic question.
awk '/Iowa/,/Montana/'
How can I modify this to tell awk to start showing lines from Iowa up to the first blank line it will see?
awk '/Iowa/,/<1st blank line>/'
Definitely I can't use " " or "/n" because it will only print the line with Iowa and the next line to this.
Sorry if this is very basic question.