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
  • Nice @giles, but why would grep suffer if the number of lines changes? Commented Aug 26, 2012 at 13:25
  • @terdon The grep method only works if all the matching sections have the same number of lines, because that's the number you need to specify on (-A). Commented Aug 26, 2012 at 14:46
  • @Giles Ah, ok, of course. I thought you meant it would not work if the number of records was variable. Gotcha. Commented Aug 26, 2012 at 14:47