Display lines beginning with a prefix in a file. Note: the lines in the file must be sorted. See also:
grep
,sort
. More information: https://manned.org/look.
look prefix path/to/file
look -f|-ignore-case -d|-alphanum prefix path/to/file
look -{t|-terminate} ,
/usr/share/dict/words
(--ignore-case
and --alphanum
are assumed):look prefix
/usr/share/dict/web2
(--ignore-case
and --alphanum
are assumed):look -a|-alternative prefix