Hints UNIX exercise 1
These are the hints for
UNIX exercise 1.
Not all these hints are necessary for successfully completing the
exercise.
- You can use the command grep for selecting the lines that include
specific strings (for example NN).
- You can use the command wc for counting words and lines.
- You can use the | for sending the output of one command to another
command.
- 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.
- You can use the command sed to replace strings by something else
and the command tr for replacing newlines with something else.
- You can use the command freq of the HUM tools for counting words.
Last update: April 14, 1996.
erikt@stp.ling.uu.se