BSD 4_4 development
[unix-history] / usr / share / man / cat6 / ching.0
CHING(6) BSD Reference Manual CHING(6)
N\bNA\bAM\bME\bE
ching - the book of changes and other cookies
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
c\bch\bhi\bin\bng\bg [ hexagram ]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
The _\bI _\bC_\bh_\bi_\bn_\bg or _\bB_\bo_\bo_\bk _\bo_\bf _\bC_\bh_\ba_\bn_\bg_\be_\bs is an ancient Chinese ora-
cle that has been in use for centuries as a source of wis-
dom and advice.
The text of the _\bo_\br_\ba_\bc_\bl_\be (as it is sometimes known) consists
of sixty-four _\bh_\be_\bx_\ba_\bg_\br_\ba_\bm_\bs_\b, each symbolized by a particular
arrangement of six straight (---) and broken (- -) lines.
These lines have values ranging from six through nine,
with the even values indicating the broken lines.
Each hexagram consists of two major sections. The J\bJu\bud\bdg\bge\be-\b-
m\bme\ben\bnt\bt relates specifically to the matter at hand (E.g., "It
furthers one to have somewhere to go.") while the I\bIm\bma\bag\bge\be
describes the general attributes of the hexagram and how
they apply to one's own life ("Thus the superior man makes
himself strong and untiring.").
When any of the lines have the values six or nine, they
are moving lines; for each there is an appended judgement
which becomes significant. Furthermore, the moving lines
are inherently unstable and change into their opposites; a
second hexagram (and thus an additional judgement) is
formed.
Normally, one consults the oracle by fixing the desired
question firmly in mind and then casting a set of changes
(lines) using yarrow-stalks or tossed coins. The result-
ing hexagram will be the answer to the question.
Using an algorithm suggested by S. C. Johnson, the UNIX
_\bo_\br_\ba_\bc_\bl_\be simply reads a question from the standard input (up
to an EOF) and hashes the individual characters in combi-
nation with the time of day, process id and any other
magic numbers which happen to be lying around the system.
The resulting value is used as the seed of a random number
generator which drives a simulated coin-toss divination.
The answer is then piped through n\bnr\bro\bof\bff\bf for formatting and
will appear on the standard output.
For those who wish to remain steadfast in the old tradi-
tions, the oracle will also accept the results of a per-
sonal divination using, for example, coins. To do this,
cast the change and then type the resulting line values as
an argument.
7th Edition May 31, 1993 1
CHING(6) BSD Reference Manual CHING(6)
The impatient modern may prefer to settle for Chinese
cookies; try _\bf_\bo_\br_\bt_\bu_\bn_\be(6).
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
It furthers one to see the great man.
D\bDI\bIA\bAG\bGN\bNO\bOS\bST\bTI\bIC\bCS\bS
The great prince issues commands,
Founds states, vests families with fiefs.
Inferior people should not be employed.
B\bBU\bUG\bGS\bS
Waiting in the mud
Brings about the arrival of the enemy.
If one is not extremely careful,
Somebody may come up from behind and strike him.
Misfortune.
7th Edition May 31, 1993 2