![]() |
Type in a command, or "ls dictionary" to search all commands for "dictionary", etc.
|
Dictionary Grep Search. Search words by regular expressions.
. is a wildcard character
* allows repetitions of the previous character (zero or more)
^ marks the beginning
$ marks the end
[] encloses a set of possibilities
Option -size specifies the word length.
Examples:
dgrep man
finds manager, batman, germanium, etc.
dgrep man..er
finds manager, womanizers, etc.
dgrep man.*er
finds manufacturer, commander, good-mannered, etc.
dgrep ^man.*er
finds manufacturer, but NOT commander
dgrep man.*er$
finds manufacturer, but NOT manufacturers
dgrep ^q[aeiou]*s$
finds queues, but NOT queens
dgrep man.*er -size 6
finds manner, but no manufacturer