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*

4
  • @ViolaW Did this solution worked for you? Commented Jan 30, 2017 at 16:16
  • thank you @GeorgeVasiliou I believe it would work if I wasn't on a Mac which doesn't seem to have agrep available. Commented Jan 31, 2017 at 18:20
  • @ViolaW OK. If you like you can have a look here on how to make agrep to work on osx: github.com/Wikinaut/agrep/issues/2 Commented Jan 31, 2017 at 22:42
  • @ViolaW Have a look in the alternative answer with awk . Commented Feb 1, 2017 at 10:23