[Comm] fortune

Иван Евтухович =?iso-8859-1?q?evtuhovich_=CE=C1_mail=2Eru?=
Вс Сен 22 12:23:18 MSD 2002


Привет Всем!

On Sat, 21 Sep 2002 21:16:13 +0400
Heavenly <heavenly на nm.ru> wrote:

> Как для фортунки создать файл с девизами из обычного текстового?
Краткий экскурс в man

man fortune
листаем в самый конец


SEE ALSO
       re_comp(3), regcomp(3), strfile(1), unstr(1)

man strfile
DESCRIPTION
       strfile  reads  a file containing groups of lines separated by a
       line con- taining a single percent `%' sign (or other specified
       delimiter character) and  creates  a data file which contains a
       header structure and a table of file offsets for each group of
       lines. This allows  random  access  of  the strings.

	The  output  file,  if not specified on the command line, is named
	source- file.dat.

То есть делаете файл file.txt, где знакок '%' разделяете выражения. 
Потом strfile (/usr/sbin/strfile) натравляете на этот файл, а далее
fortune file.txt

Надеюсь, что этот краткий экскурс в man поможет вам более быстро и
качественно искать ответы на свои вопросы.


--
С наилучшими пожеланиями, Иван Евтухович
mailto: evtuhovich на mail.ru
ICQ UIN: 52227602
JID: evtuhovich на jabber.org
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 189 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url     : <http://lists.altlinux.org/pipermail/community/attachments/20020922/fe7a80c6/attachment-0007.bin>


Подробная информация о списке рассылки community