Hints UNIX exercise 1

These are the hints for UNIX exercise 1. Not all these hints are necessary for successfully completing the exercise.

  1. You can use the command grep for selecting the lines that include specific strings (for example NN).
  2. You can use the command wc for counting words and lines.
  3. You can use the | for sending the output of one command to another command.
  4. If your count is incorrect then try to look at the input of wc with more. Perhaps you are counting lines with two occurrences of NN as one or counting lines that do not contain the tag.
  5. You can use the command sed to replace strings by something else and the command tr for replacing newlines with something else.
  6. You can use the command freq of the HUM tools for counting words.


Last update: April 14, 1996. erikt@stp.ling.uu.se