Pete's Linux Advent Calendar 2007
The 2nd day
Create your virtual fortune cookie
Here is how to create your own random access file:
Create a file with the entries you want to have, delimit them
with a percent sign (%) on a line by itself:
Do you pine for the nice days of minix-1.1, when men were men and wrote
their own device drivers?
-- Linus Torvalds,
Oct, 5th 1991 in comp.os.minix announcing Linux
%
Hurd will be out in a year (or two, or next month, who knows), ...
-- Linus Torvalds,
Oct, 5th 1991 in comp.os.minix announcing Linux
%
Unix is like a wigwam -- no Gates, no Windows, and an Apache inside.
- Brad Knowles
%
A mouse is a device used to point at the xterm you want to type in.
--Kim Alm, a.s.r
(signature by David Bishop)
%
It is assumed that the reader is reasonably familiar with the `dpkg'
System Administrators' manual. Unfortunately this manual does not yet
exist.
- from Debian Policy
%
Is there any documentation to "iscsistart" other than "iscsistart.c"?
- Tomasz Chmielewski
then run the command strfile -r fortunes assuming you
have saved the file under the name fortunes. This
will create a file fortunes.dat. If you now
run fortune fortunes a random entry is printed.