~ubuntu-branches/ubuntu/breezy/fortunes-es/breezy

« back to all changes in this revision

Viewing changes to util/randstr.man

  • Committer: Bazaar Package Importer
  • Author(s): Javier Fernandez-Sanguino Pen~a
  • Date: 2005-04-24 01:52:04 UTC
  • mfrom: (1.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050424015204-ndov9cxtiho7l0jf
Tags: 1.24
Added feminist fortunes provided by Miriam Ruiz to the -off package

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\"
 
2
.\" Randstr: grab a random text string from a specified text file
 
3
.\" Amy A. Lewis, October, 1995
 
4
.\"
 
5
.TH RANDSTR 1 "October 1995" "Linux hackery"
 
6
.SH NAME
 
7
randstr \- fetch a random text string from a specified file
 
8
.SH SYNOPIS
 
9
.BI "randstr " filename
 
10
.SH DESCRIPTION
 
11
In essence, 
 
12
.B randstr
 
13
is a stripped-down, minimalist version of the popular
 
14
.BR fortune (6)
 
15
program.
 
16
.PP
 
17
It reads files with the same structure as the fortunes databases, and
 
18
displays a random string.
 
19
.SS Usage
 
20
.B randstr
 
21
might be used, with a database of signatures created with a text editor
 
22
and the 
 
23
.BR strfile "(8) and " unstr (8)
 
24
utilities, to randomly change the 
 
25
.I $HOME/.signature
 
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 :
 
30
.RS
 
31
.BI "randstr " signatures
 
32
.RI > .signature
 
33
.RE
 
34
.PP
 
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.
 
40
.PP
 
41
Also as superuser, one might use 
 
42
.B randstr
 
43
with a shell or
 
44
.B Perl
 
45
script to read the 
 
46
.I etc/passwd
 
47
database and create a 
 
48
.I strfile
 
49
type database, and use this database to run a monthly lottery.
 
50
.SH BUGS
 
51
None known.
 
52
.SH SEE ALSO
 
53
.BR fortune "(6), " strfile (1)