Midterm 2 Review
You need to know the following about awk:
- Internal variables and defaults for input and output field
separators.
- Use
printf; how to print leading zeros and how
to left or right justify a value.
- Use regular expressions to determine which lines will be
selected for processing.
- Remember that
^ means
something different inside square brackets than when it is
outside square brackets.
- Be able to use POSIX character
classes like
[:alpha:]
- Know about variables like
NF and NR.
- Know when
BEGIN and END are processed.
- Redirecting output from within an
awk script.
- Use the
if, else, and
else if constructs.
- Know how command line arguments are handled and counted.
- Know how to index arrays by number and by string (associative
arrays).
- Know how to use numeric functions such as
sqrt and
string functions such as index
- Know how to work with random numbers.