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*

2
  • 1
    Why awk? I mean, awk does this automatically: awk '{print $3}' file will print the 3rd field. Is that what you mean, or do you want to do this in the shell? Commented Sep 14, 2019 at 17:18
  • @terdon: grumble grumble Please don't reinvent the cut(1) wheel with awk, it makes things harder to read, and some of us actually have to maintain our terrible shell scripts... Commented Sep 15, 2019 at 1:47