How to use autoquiz

autoquiz is installed on isoptera in order to help you practice with regular expressions. It contains 10 built-in problems, each of which can be solved by regular expression. It can be run like this:
seth@isoptera:~ $ autoquiz
Usage:  autoquiz question_number [pattern]
question number is a number from 1 through 10

seth@isoptera:~ $ autoquiz 5
x
xenon
xenon's
xenophobia
xenophobia's
xenophobic
xerographic
xerography
xerography's
xylem
xylem's
xylophone
xylophone's
xylophones
xylophonist
xylophonist's
xylophonists
Description:  Words beginning with x

seth@isoptera:~ $ autoquiz 5 gerbil
Running pattern:  gerbil
Executing:  grep gerbil /usr/share/dict/american-english
Result: 
gerbil
gerbil's
gerbils
Sorry, output differs
Questions are numbered from 1 through 10. In the example above, using "gerbil" as the regular expression for grep does not match the same words as built-in regular expression 5 from autoquiz. The line beginning with "Executing:" indicates the command which is run by autoquiz for the regular expression you provide. It does not output the built-in expression that produced the list when "autoquiz 5" was run. If you provide the correct regular expression, it will print a different message indicating success.
A separate command, checkquizgrade, is available if you forget which questions you have solved. It will show both which question numbers you have solved, and what regular expression was used to solve them. If you solve a question twice, the solution will be recorded twice, so remember this if you run a command to figure out how many you have solved, like this:
checkquizgrade | wc -l
In some circumstances checkquizgrade may output blank lines as well. So you might want to do something more complicated to obtain an accurate count, perhaps using sort and filtering out blank lines.
Finish all the questions by the final exam to obtain the quiz grade for the class.