SUGGESTED EXERCISES FOR AWK

 (1)   Use ls -l and awk to obtain the total space  consumed  by  some
       group of files.

 (2)   Examine the /etc/passwd file with awk to  print  out  only  the
       shells.  Pipe the output into sort -u (or into sort | uniq).

 (3)   Use awk to convert the output of who into a list of  statements
       with the following form:

       User ggww is on terminal line ttyp0

 (4)   Suppose you have a rule on your system that user  id's  are  to
       all  be  at least 4 characters in length. You want to make sure
       this rule has been followed. Show how to write a  list  of  all
       user id's which do not follow this rule.

 (5)   Find 1 or 2 (or more ways to print an  entire  file  which  are
       different from the ones shown in class.