Commit | Line | Data |
---|---|---|
6983d479 C |
1 | QUIZ(6) BSD Reference Manual QUIZ(6) |
2 | ||
3 | N\bNA\bAM\bME\bE | |
4 | q\bqu\bui\biz\bz - random knowledge tests | |
5 | ||
6 | S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS | |
7 | q\bqu\bui\biz\bz [-\b-t\bt] [-\b-i\bi _\bf_\bi_\bl_\be] [_\bq_\bu_\be_\bs_\bt_\bi_\bo_\bn _\ba_\bn_\bs_\bw_\be_\br] | |
8 | ||
9 | D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN | |
10 | The q\bqu\bui\biz\bz utility tests your knowledge of random facts. It has a database | |
11 | of subjects from which you can choose. With no arguments, q\bqu\bui\biz\bz displays | |
12 | the list of available subjects. | |
13 | ||
14 | The options are as follows: | |
15 | ||
16 | -\b-t\bt Use tutorial mode, in which questions are repeated later if you | |
17 | didn't get them right the first time, and new questions are pre- | |
18 | sented less frequently to help you learn the older ones. | |
19 | ||
20 | -\b-i\bi Specify an alternate index file. | |
21 | ||
22 | Subjects are divided into categories. You can pick any two categories | |
23 | from the same subject. Q\bQu\bui\biz\bz will ask questions from the first category | |
24 | and it expects answers from the second category. For example, the com- | |
25 | mand ``quiz victim killer'' asks questions which are the names of vic- | |
26 | tims, and expects you to answer with the cause of their untimely demise, | |
27 | whereas the command ``quiz killer victim'' works the other way around. | |
28 | ||
29 | If you get the answer wrong, q\bqu\bui\biz\bz lets you try again. To see the right | |
30 | answer, enter a blank line. | |
31 | ||
32 | I\bIn\bnd\bde\bex\bx a\ban\bnd\bd D\bDa\bat\bta\ba F\bFi\bil\ble\be S\bSy\byn\bnt\bta\bax\bx | |
33 | The index and data files have a similar syntax. Lines in them consist of | |
34 | several categories separated by colons. The categories are regular ex- | |
35 | pressions formed using the following meta-characters: | |
36 | ||
37 | pat|pat alternate patterns | |
38 | {pat} optional pattern | |
39 | [pat] delimiters, as in pat[pat|pat]pat | |
40 | ||
41 | In an index file, each line represents a subject. The first category in | |
42 | each subject is the pathname of the data file for the subject. The re- | |
43 | maining categories are regular expressions for the titles of each catego- | |
44 | ry in the subject. | |
45 | ||
46 | In data files, each line represents a question/answer set. Each category | |
47 | is the information for the question/answer for that category. | |
48 | ||
49 | The backslash character (``\'') is used to quote syntactically signifi- | |
50 | cant characters, or at the end of a line to signify that a continuation | |
51 | line follows. | |
52 | ||
53 | If either a question or its answer is empty, q\bqu\bui\biz\bz will refrain from ask- | |
54 | ing it. | |
55 | ||
56 | F\bFI\bIL\bLE\bES\bS | |
57 | /usr/share/games/quiz.db The default index and data files. | |
58 | ||
59 | B\bBU\bUG\bGS\bS | |
60 | Q\bQu\bui\biz\bz is pretty cynical about certain subjects. | |
61 | ||
62 | 4.4BSD May 31, 1993 1 |