MAF(1) General Commands Manual MAF(1)

mafmulti-word anagram finder

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

The maf program finds all the words that can be formed by using the characters in the string argument. When a set of words which uses all the characters in the source string is found, the set is printed on stdout.

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
file
Use the named UNIX dictionary file as the basis for searching for anagrams. If neither -d nor -f is specified, “-f ./words” is the default command line option. It assumes a UNIX dictionary file called "words" is available in the current working directory.
Display single-word anagrams only. The default is to display both multi-word and single-word anagrams.
Causes maf to issue a diagnostic trace. Not useful for normal usage.

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

maf -s regal

maf spiroangnew

Mark Willson

October 3, 2025 Debian