FORTUNE(6) FORTUNE(6) - fortune [-acefilosw] [-n length] [-m pattern] [[n%] file/dir/all] fortune . . : -a . ( -o .) -c . -e ( ). -f . -l . -n "" . -m . re_comp(3) regcomp(3) grep(1). . . "" . . -n () "" ( 160). "". ! . -o . -o . . ( -o ) ... : - . . --H. " " -s . -n "". -i -m. -w . . . all . n 0 100 %. n . 100 / . funny not-funny funny ( ) fortune funny not-funny funny . fortune 90% funny 10% not-funny 90% funny ("10% not-funny" 10% ). -e fortune -e funny not-funny fortune 50% funny 50% not-funny BSD "-o" . fortune : "-o". ( ) "-o" ( -a -o). . definitions 90% 10% : fortune 90% definitions definitions-o : . /usr/share/fortune . /usr/share/fortune/off . : .dat . fortune . `-o' 100% fortune BSD. `-o' . `-o' ( ) -a. fortune . . . . fortune ( ) ( ). ( fortunes/definitions fortunes/off/definitions). . . fortune NetBSD fortune 1.4 . fortune/strfile strfile .dat. NetBSD fortune 1.4 : .dat ( strfile.h) . unstr ( .dat ). NetBSD BSD. SunOS 4.x . . . re_comp(3) regcomp(3) strfile(1) unstr(1) 3 . . : . 19 94 [. 97] FORTUNE(6)