Saturday, November 01, 2008

Using the FORTUNE program in LINUX

Need to make your own fortune database?

Put your quotes in a text file, one per line, with % in between them:
A man wrapped up in himself makes a very small bundle.

%

A penny saved is a penny earned.

%

Watch me pull a rabbit outta my hat!


Then use the strfile command to turn it into a fortune.dat file:
strfile -r myquotes myquotes.dat

Source: http://chxo.com/tmb/2004/07/need-to-make-your-own-fortune-database.html
csnyder