Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] OT awk question
Date: Wed, 17 Jan 2018 01:49:59
Message-Id: CAC=wYCE-whpv5Kkic8VqL85FCLHGK5sih7eE4ZKFxO9goa9GBw@mail.gmail.com
I'm using this to grab a section of text across multiple lines, how do i
get it to exit after the first match?

awk '/foo/,/bar/'

Replies

Subject Author
[gentoo-user] Re: OT awk question Ian Zimmerman <itz@××××××××××××.org>
Re: [gentoo-user] OT awk question Alexander Kapshuk <alexander.kapshuk@×××××.com>