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*

6
  • 3
    the first command works for me, second has a minor typo (closing parenthesis in print stmt) and doesn't set OFS... what is your awk version? probably you have dos style line endings? (but that doesn't cause an issue when I checked) Commented Oct 21, 2017 at 15:36
  • How do I know my awk version? Yes, I typed it wrong in here, but it's correct in my script. Commented Oct 21, 2017 at 15:58
  • With old awk you could try awk -F, '$7 == "-99"'. Commented Oct 21, 2017 at 15:59
  • for version, try the command awk --version if that doesn't work, check man awk Commented Oct 21, 2017 at 16:02
  • My version is 1.2 Commented Oct 21, 2017 at 16:31