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
  • 1
    "I tried ___ but did not get the results." What is that supposed to mean? What results did you get, exactly? The best thing to do on these types of questions is to give a sample of input and expected output. Commented Feb 8, 2016 at 7:46
  • 1
    Please edit with a sample of your real input file. awk 'NF==2' ought to be a correct solution to your problem as described, so something else is going on here. Commented Feb 8, 2016 at 8:00
  • "The best thing to do on these types of questions is to give a sample of input and expected output" . Is it possible to upload input file and the output file on this forum so that you could have a better look at it? Commented Feb 8, 2016 at 8:06
  • 1
    Just copy and paste a representative extract from the input file into the question, and put it in a code block (indented four spaces, like what I did in my edit). Commented Feb 8, 2016 at 8:10
  • I have given one small portion of the input file (see the modified question). This produced nothing on the output Commented Feb 8, 2016 at 9:15