Name
look — stdin stdout - file -- opt --help --version
Synopsis
look [options]prefix[dictionary_file]
The look command prints (on
standard output) words that begin with a given string
prefix. The words are located in a
dictionary file (default /usr/share/dict/words). For instance,
look bigg prints:
bigger biggest Biggs
If you supply your own dictionary file—any text file with
alphabetically sorted lines—look
will print all lines beginning with the given
prefix.
Useful options
|
|
Ignore case. |
|
|
Match the prefix only
up to and including the termination character
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access