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
  • 2
    What is the full command you had run? Commented Aug 27, 2014 at 8:26
  • 3
    Can you also provide some example dataset? Commented Aug 27, 2014 at 8:29
  • @Gnouc: I am just saving the code above in a file named test.awk and run it with awk -f test.awk old.dat > new.dat Commented Aug 27, 2014 at 11:23
  • @Froop: So I think it failed because you never enter for loop. The condition $2==100.0 false. Commented Aug 27, 2014 at 11:29