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.

2
  • 1
    Note the NRs will be one-off in this case (try replacing /./ with NR==1). I think the easiest solution would be to have the file/data ending - instead of starting - with a # on a separate line. Then \n#\n could be used as RS and it would work properly. Commented Mar 21, 2015 at 13:33
  • @don_crissti I just copied that from the OP. I am assuming they're using it to avoid blank lines so NR==1 won't work if there are more blank lines further down. Commented Mar 21, 2015 at 13:59