Name

maf — multi-word anagram finder

Synopsis

maf [ -d file ] [ -f file ] [ -s ] [ -x ] source_string

Description

The maf (multi-word anagram finder) program finds all the words that can be formed by using the characters in the source_string argument. When a set of words which uses all the characters in the source string is found, the set is printed on stdout.

Command Arguments

-f file

Use the named UNIX dictionary file as the basis for searching for anagrams. This is the default command line option, and assumes a UNIX dictionary file called "words" is available in the current working directory.

-d file

Use the named BTree dictionary file as the basis for searching for anagrams. Using this option will cause an error, unless BTree support has been compiled into maf.

-s

Display single-word anagrams only. The default is to display multi-word and single-word anagrams.

-x

Causes maf to issue a diagnostic trace. Not useful for normal usage.

Notes

Maf is based on the description of such a program in "The Armchair Universe" by A. K. Dewdney.

Examples

      ./maf -s regal

      ./maf spiroangnew