2
.\" Randstr: grab a random text string from a specified text file
3
.\" Amy A. Lewis, October, 1995
5
.TH RANDSTR 1 "October 1995" "Linux hackery"
7
randstr \- fetch a random text string from a specified file
9
.BI "randstr " filename
13
is a stripped-down, minimalist version of the popular
17
It reads files with the same structure as the fortunes databases, and
18
displays a random string.
21
might be used, with a database of signatures created with a text editor
23
.BR strfile "(8) and " unstr (8)
24
utilities, to randomly change the
26
file. To do so, create the necessary database as, for example,
27
.IR signatures " and " signatures.dat
28
in the home directory, and add the following line to
29
.IR .profile " or " .login :
31
.BI "randstr " signatures
35
As superuser, a similar sort of thing could be placed in the
36
.BR Pnews "(1) or " Rnmail (1)
37
scripts, although it should certainly test to be certain that the files
38
exist, and creating the files of signatures might require a good deal of
39
help for a lot of users.
41
Also as superuser, one might use
49
type database, and use this database to run a monthly lottery.
53
.BR fortune "(6), " strfile (1)