Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    Thanks for the input. But I need all the information from the all records that meets the search criteria. Commented Jun 1, 2016 at 17:32
  • @L.D.James: This is the cleanest approach, printing the From line was just an example. In order to replicate what you have added to your question, see my edit. Commented Jun 2, 2016 at 8:38
  • Thanks. These are some of the things that I put in the /search/ criteria. !/ubunzeus/, /ubunzeus/, /cox.net/. Then I'm looking to review elements of the log, I just change the file before the {print} parameter. The awk one liner does everything needed to complement my other scripts using awk. I was just having problems using the regex unindented line as the Record Separator. The \n along with the double slash for an escape character fixed everything. I'll explore the ORS variable to get the Record Separator character(s) back. Commented Jun 2, 2016 at 8:56