gawk: Input Exercises
1
1 4.15 Exercises
1 ==============
1
1 1. Using the 'FIELDWIDTHS' variable (⇒Constant Size), write a
1 program to read election data, where each record represents one
1 voter's votes. Come up with a way to define which columns are
1 associated with each ballot item, and print the total votes,
1 including abstentions, for each item.
1
1 2. ⇒Plain Getline, presented a program to remove C-style
1 comments ('/* ... */') from the input. That program does not work
1 if one comment ends on one line and another one starts later on the
1 same line. That can be fixed by making one simple change. What is
1 it?
1