It's easy.

Make a text file called filename with all your sayings separated by '%', e.g.

this is entry 1
%
this is entry 2
%
this is entry 3

Then at the prompt type

strfile

This creates a file called filename.dat

Stick both filename and filename.dat in /usr/share/games/fortune

Then simply type...

fortune filename

Note, this will also add your new fortune to the random mix if you just type fortune. You can 'keep it separated' if you put it in a different directory, then specify the path when you run fortune.

-- MattWalsh - 14 Jun 2004

Topic revision: r1 - 14 Jun 2004 - MattWalsh
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback