|
NAMEnonsense —
generates random text from datafiles and templates
SYNOPSIS
DESCRIPTIONNonsense generates random (and sometime humorous) text
from datafiles and templates using a very simple, recursive grammar. It's like
having a million monkeys sitting in front of a million typewriters, without
having to feed or clean up after them. From fake Slashdot headlines to absurd
college courses to buzzword bingo cards, nonsense is a
good way to waste time.
The following options are available:
The Thanks to contributions by Fred Hirsch
⟨truehand@darkhart.com⟩, FILES
EXAMPLESBellow is a list of things thatnonsense can output with
the data files included.
For a realistic simulation of the Slashdot homepage: nonsense -t slashdot.html.template For a buzzword-enhanced mission statement that only a “Pointy Haired Boss” could love: nonsense -f mission.data For a PHB-inspired business plan (in HTML): nonsense -t bizplan.html.template -f mission.data For a person's name: nonsense Person For a long list of random fake e-mail addresses suitable for sending to a spammer's e-mail harvester: nonsense FakeEmail -n 1000 For a buzzword bingo card (in HTML) to print out for your next meeting: nonsense -t bingo.html.template For a listing of absurd college classes (these might be offensive to liberal-arts professors): nonsense -f college.data -n 20 For a listing of political organizations (again, these might be offensive to certain people): nonsense OrgPolitical -n 10 For a listing of stupid laws that may or may not really exist: nonsense -f stupidlaws.data -n 10 For a list of Open Source programs as they would appear on Freshmeat: nonsense -f linux.data FreshmeatApp For the resume of a random geek (in HTML): nonsense -f resume.data -t resume.html.template For a news headline: nonsense -f newspaper.data Headline For the front page of a newspaper (in HTML): nonsense -f newspaper.data -t newspaper.html.template For a cheap replacement for the fortune(6) program: nonsense -F Fortune To produce a file containing 100 items suitable for feeding to fortune(6): nonsense -F FortuneFile -n 100 FILE FORMATSNonsense reads in “template files” and
“data files”.
A template file is merely a text file containing
“tags” enclosed in curly braces (‘{’ and
‘}’). A data file is a text file divided into sections (seperated by a blank line), each one containing a list of text items (seperated by a newline) that are randomly selected to fill in the template. There are a few special cases that allow
Case is important! {ProductName}, {productname} and {PRODUCTNAME} are slightly different. If the name is given in lowercase, the substitution will be converted to all lowercase (i.e. fed through the perl lc function). Upercase names specify the opposite; the result is uppercoased
with uc. Mixed case names tell SEE ALSOfortune(6)http://i-want-a-website.com/about-linux/downloads.shtml AUTHORSThenonsense program is written by
James Baughn
⟨nonsense@i-want-a-website.com⟩.
Fred Hirsch ⟨truehand@darkhart.com⟩ and Peter Suschlik ⟨peter@zilium.de⟩ have both submitted code. Send suggestions, comments, feedback, patches, and new datafiles/templates to the above address. Direct your hate mail and flames to ⟨devnull@i-want-a-website.com⟩. This manual page was written by Dave Chapeskie ⟨dchapes@ddm.crosswinds.net⟩ from the README file. Copyright 2000-2001. This program and accompanying files are licensed under the GNU General Public License 2.0. BUGSThe-e option is not the default.
Visit the GSP FreeBSD Man Page Interface. |