Hi what is the purpose of using underscore in awk. I suppose it is for defining macro's and reducing repeatation but can some one show me an example? (6 Replies)
How does adding an underscore change a google search? I was searching for John Elway and got different results with and without an unscore. (3 Replies)
Hi all,
I have to insert underscore at certain places(places before and after PAxxx/PAxxxx entries in a big file like this
ESR1 PA156 leflunomide PA450192
CHST3 PA26503 docetaxel tungstate Pa4586; thalidomide Pa34958;
PAxxx/PAxxxx entries are metioned between 2 names in each row
... (4 Replies)
I have the following text file and want to change the paragraphs so that
they fill 80 characters rather than the usual 65 in this case. Is there an easy way to do this?
All three groups were distinguished by the remarkable
manner in which they moved about on the solar surface, not
only in... (7 Replies)
I want to convert an double to a character string. I done the integer and float ones using itoa and ftoa. How can I do a similar thing with doubles?
String::String
(
const float f
) {
char *cdata = ftoa (f);
strcpy (STR, cdata.c_str ());
}
String::String
(
const double ... (1 Reply)
Hello,
I have spent a couple of hours trying to answer this myself, so forgive me if the answer is simple but I have tried.
I have a text file generated from svn log output which contains a list of files.
Two regexps im using are
*
and
*
They both work but some lines has a mixture... (7 Replies)
Hi All
I have a filename like below
adsf_ghjt_kop_pol.csv
Can you please get me a command for counting the number of underscore in the filename.
In the above filename I should get output as 3, since the file name is having three underscore (5 Replies)
Discussion started by: ginrkf
5 Replies
LEARN ABOUT NETBSD
boggle
BOGGLE(6) BSD Games Manual BOGGLE(6)NAME
boggle -- word search game
SYNOPSIS
boggle [-bd] [-s seed] [-t time] [-w length] [+ [+]] [boardspec]
DESCRIPTION
The object of boggle is to find as many words as possible on the Boggle board within the three minute time limit. A Boggle board is a four
by four arrangement of Boggle cubes, each side of each cube displaying a letter of the alphabet or `qu'. Words are formed by finding a
sequence of cubes (letters) that are in the game's dictionary. The (N+1)th cube in the word must be horizontally, vertically, or diagonally
adjacent to the Nth cube. Cubes cannot be reused. Words consist solely of lower case letters and must be at least 3 letters long.
Command line flags can be given to change the rules of the game.
-b Run boggle in batch mode. A boardspec must also be given. The dictionary is read from stdin and a list of words appearing in
boardspec is printed to stdout.
-d Enable debugging output.
-s seed Specify a seed seed other than the time of day.
-t time Set the time limit for each game from the default 3 minutes to time seconds.
-w length Change the minimum word length from 3 letters to length.
+ This flag allows a cube to be used multiple times, but not in succession.
++ This flag allows the same cubes to be considered adjacent to itself.
boardspec A starting board position can be specified on the command line by listing the board left to right and top to bottom.
Help is available during play by typing '?'. More detailed information on the game is given there.
AUTHORS
Boggle is a trademark of Parker Brothers.
Barry Brachman
Dept. of Computer Science
University of British Columbia
BUGS
If there are a great many words in the cube the final display of the words may scroll off of the screen. (On a 25 line screen about 130
words can be displayed.)
No word can contain a 'q' that is not immediately followed by a 'u'.
When using the + or ++ options the display of words found in the board doesn't indicate reused cubes.
The dictionary that NetBSD installs omits many words that belong in the English language, most notably inflected forms.
BSD September 23, 2006 BSD