TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:3857] fortune
- To: Twin Cities Linux Users Group <tclug-list@listserv.real-time.com>
- Subject: Re: [TCLUG:3857] fortune
- From: Ben Luey <lueyb@carleton.edu>
- Date: Tue, 2 Feb 1999 22:46:27 -0600 (EST)
- In-Reply-To: <Pine.SOL.4.05.9902021842420.22052-100000@garnet.tc.umn.edu>
> I'm trying to make my own fortune files. I did it last year, but I can't
> remember the name of the utility that makes fortune-readible .dat files
> anymore! It's not in the fortune man file either. Anybody know?
I've got a little script that does it for me. Here it is. The command is
`/usr/sbin/strfile filetomakedata' the file should have quotes separated
with a % and a line break
_____________________________
#!/bin/sh
usage() {
echo \
"makequotes quotes-files
makes dat files for fortune text files. .dat and text files should be
in ~/quotes $
exit 0
}
case $1 in
-h|--help|-help) usage;;
esac
if test $# -lt 1
then
usage
fi
for QUERY in $*
do
rm ~/quotes/$QUERY.dat
/usr/sbin/strfile ~/quotes/$QUERY
done
>
> Thanks,
> Luke
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com
>
Ben Luey
lueyb@carleton.edu
ICQ: 19144397
The art, or rather the knack, of flying is the ability to throw oneself onto
the ground and miss. -- Douglas Adams