You're viewing a comment by Zsolt and its responses.

June 27, 2011, 08:44

Some error reporting (but still, thanks for the great tutorial):

- @2.2: awk 'BEGIN { ORS="\n\n" }; 1' the ; is not necessary AFAIK.
- @3.4: same applies in awk 'NF { $0=++ a " : " $0 }; { print }'
- @3.7: ; before END
- @3.9-3.11,3.14: ; before END
- @4,17: "This is the first time we see the -F argument passed to Awk." Actually we had seen in @1.1.

Comment Responses

June 28, 2011, 15:56

Thanks for finding and reporting the errors!

There is nothing wrong with having ;, but yes, you're right, and they can be left out! One char shorter. :)

@4.17 - good catch!

Internet Troll Permalink
September 05, 2012, 15:48

It is good practise to program awk in C style. I would not want to work with anyone who believes code has to be as short as possible, sacrifying the readability.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "cloud_257": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.