To compare,
First, in you program file, code your answers in the following format:
grep 'regex' /home/ux/berezin/data/hp1 > ga.1
where regex is the your solution
and
ga.1 is the name of the output file from running the grep.
change the number extension so that it is the number of the problem.
Next, create the following shell program and call it gtest.
or create an alias called gtest
To test your output, simply run gtest on the problem number
If there is no output, you have an identical answer, othterwise it will list the difference between the two files.