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.

4
  • OP says they can’t use awk Commented Apr 4, 2019 at 5:44
  • hooo ok... will update.. Commented Apr 4, 2019 at 5:48
  • @Inian awk may not be what the user is supposed to use, but it is the right tool for the job. There is no point learning to use the wrong tools. It is additionally a standard tool that is available on any Unix system. Commented Apr 4, 2019 at 12:15
  • 1
    @Kusalananda: Agreed, I would have preferred awk if not for the OP's disclaimer Commented Apr 4, 2019 at 12:17