6 More Discussions You Might Find Interesting
1. What is on Your Mind?
Hello All,
Just want to share some funny *NIX commands :).
$ make love
make: *** No rule to make target `love'. Stop.
On a FreeBSD make:
$ make love
Not war.
$ \(-
bash: (-: command not found
$ man woman
No manual entry for woman
$ touch /me
touch: cannot touch `/me':... (5 Replies)
Discussion started by: RavinderSingh13
5 Replies
2. What is on Your Mind?
Guys,
This is funny.
http://i28.photobucket.com/albums/c228/jralph2005/bart.png
jaysunn (2 Replies)
Discussion started by: jaysunn
2 Replies
3. What is on Your Mind?
Just one i like.
Missing Cat! ! ! (0 Replies)
Discussion started by: Action
0 Replies
4. Shell Programming and Scripting
Hello, this is my first post and question. I have search before for this problem but didn't find anything similar.
My case: I have a string inside the variable string1 like this:
string1="lala lele lili lolo lulu"
When I do echo of it, it appears like this:
echo $string1
lala lele lili... (8 Replies)
Discussion started by: hemtar
8 Replies
5. What is on Your Mind?
If you people find something funny like these go ahead and post it :) (5 Replies)
Discussion started by: vidyadhar85
5 Replies
6. UNIX for Dummies Questions & Answers
Hallo everybody
I am having a shell script called auto_run.sh in that only the first line works.
the second line which has sed command is working only at the # prompt. not within the shell script. What could be the reason.
*... sed 's/ //g' KTI >abc works in another shell script without the... (6 Replies)
Discussion started by: naushad
6 Replies
LEARN ABOUT NETBSD
fortune
FORTUNE(6) BSD Games Manual FORTUNE(6)
NAME
fortune -- print a random, hopefully interesting, adage
SYNOPSIS
fortune [-aefilosw] [-m pattern] [[N%] file/dir/all]
DESCRIPTION
When fortune is run with no arguments it prints out a random epigram. Epigrams are divided into several categories, where each category is
subdivided into those which are potentially offensive and those which are not. The options are as follows:
-a Choose from all lists of maxims, both offensive and not. (See the -o option for more information on offensive fortunes.)
-e Consider all fortune files to be of equal size (see discussion below on multiple files).
-f Print out the list of files which would be searched, but don't print a fortune.
-i Ignore case for -m patterns.
-l Long dictums only.
-m pattern
Print out all fortunes which match the regular expression pattern. See regex(3) for a description of patterns.
-o Choose only from potentially offensive aphorisms. Please, please, please request a potentially offensive fortune if and only if you
believe, deep down in your heart, that you are willing to be offended. (And that if you are, you'll just quit using -o rather than
give us grief about it, okay?)
... let us keep in mind the basic governing philosophy of The Brotherhood, as handsomely summarized in these words: we believe in
healthy, hearty laughter -- at the expense of the whole human race, if needs be. Needs be.
--H. Allen Smith, "Rude Jokes"
-s Short apothegms only.
-w Wait before termination for an amount of time calculated from the number of characters in the message. This is useful if it is exe-
cuted as part of the logout procedure to guarantee that the message can be read before the screen is cleared.
The user may specify alternative sayings. You can specify a specific file, a directory which contains one or more files, or the special word
all, which says to use all the standard databases. Any of these may be preceded by a percentage, which is a number N between 0 and 100
inclusive, followed by a '%' character. If it is, there will be an N percent probability that an adage will be picked from that file or
directory. If the percentages do not sum to 100, and there are specifications without percentages, the remaining percent will apply to those
files and/or directories, in which case the probability of selecting from one of them will be based on their relative sizes.
As an example, given two databases funny and not-funny, with funny twice as big, saying
$ fortune funny not-funny
will get you fortunes out of funny two-thirds of the time. The command
$ fortune 90% funny 10% not-funny
will pick out 90% of its fortunes from funny (the ``10%'' is unnecessary, since 10% is all that's left). The -e option says to consider all
files equal; thus
$ fortune -e
is equivalent to
$ fortune 50% funny 50% not-funny
Datafiles for fortune are created by the strfile(8) utility, which is not installed by default, The source code for this utility can be found
in /usr/src/games/fortune/strfile, if it exists.
FILES
/usr/share/games/fortune/* Fortune files.
SEE ALSO
regex(3), random(6), rot13(6)
BSD
September 9, 2004 BSD