fortuneis run with no arguments it prints out a random epigram. Epigrams are divided into several categories, where each category is subdivided into those which are potentially offensive and those which are not. The options are as follows:
-ooption for more information on offensive fortunes.)
-orather than give us grief about it, okay?)
... let us keep in mind the basic governing philosophy of The Brotherhood, as handsomely summarized in these words: we believe in healthy, hearty laughter -- at the expense of the whole human race, if needs be. Needs be. --H. Allen Smith, "Rude Jokes"
all, which says to use all the standard databases. Any of these may be preceded by a percentage, which is a number N between 0 and 100 inclusive, followed by a ‘%’ character. If it is, there will be an N percent probability that an adage will be picked from that file or directory. If the percentages do not sum to 100, and there are specifications without percentages, the remaining percent will apply to those files and/or directories, in which case the probability of selecting from one of them will be based on their relative sizes. As an example, given two databases funny and not-funny, with funny twice as big, saying
$ fortune funny not-funny
$ fortune 90% funny 10% not-funny
-eoption says to consider all files equal; thus
$ fortune -e
$ fortune 50% funny 50% not-funny
fortuneare created by a utility called
strfile. Although not installed by default, the source code and a manual page for this utility can be found in /usr/src/games/fortune/strfile/, if it exists.
|July 12, 2017||OpenBSD-current|