Creating your own for­tunes

Created: Sun Apr 14 02:51:00 CEST 2019

Last mod­i­fied: Mon Apr 15 23:18:00 CEST 2019

Just tak­ing note of some­thing don’t mind me…

Here is a sam­ple for­tune file:

one to three
four five six

Generate a dat file us­ing str­file(1).

$ strfile fortunes

Typical out­put:

"fortunes.dat" created
There were 2 strings
Longest string: 6 bytes
Shortest string: 4 bytes

Then run for­tune(1).

$ fortune ./my-fortune-file

Where my-fortune-file is with­out .dat.

source code