On 12/8/2015 11:01 AM, Doc Trins O'Grace wrote:
> I tend to write my awk programs using a semicolon at the end of every statement. I think I picked up this habit using C and Java. I noticed that in the examples I see from you all here, that this practice appears to only occur when multiple statements are placed on the same line. I tend to do this in Perl as well.
>
> Are there any advantages or disadvantages to this habitude?
>
advantages: if/when in some highly unusual situation you decide to change your
multi-line script to a single line you do not need to add sem-colons.
disadvantages: to quote from the movie Fargo: it's kinda funny-looking.
IMHO - don't do it or people will think you don't know awk.
Ed.