<quote who="Rev Simon Rumble">
> There are also switches to not use the off-colour fortunes (actually I
> think the Debian one requires you to explicitely ask for off colour).
Or, make your own! It's fun! It's like PlaySchool without the Macrame and
Paper Mache! Like kindergarten without catch and kiss! Like teenage without
the mutant! Like-- Jeff's posts without the crack!
So, create a quotes file; it looks like this:
$ vi quotes
Quote 1
%
Quote 2
%
"PANTS OFF!" - Conrad Parker
%
"I'll just sit here and fondle my notebook." - Michael Slade
Then, run strfile on it:
"quotes.dat" created
There were 4 strings
Longest string: 61 bytes
Shortest string: 8 bytes
Thus, you have a fortune compatible strings file (with dat file):
$ fortune quotes
"PANTS OFF!" - Conrad Parker
Hurrah! Now add this to your .bashrc for speedy fortune file editing fun:
vifortune()
{
if [ -z $1 ]
then
echo "Usage: vifortune fortune-file";
else
vi $1;
strfile $1 > /dev/null;
echo;
fortune $1;
fi
}
- Jeff
--
"World domination is a community responsibility." - Michael Hall,
LinuxPlanet
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug