look Command Examples

Display lines beginning with a prefix in a sorted file. Note: the lines in the file must be sorted. See also: grep, sort. More information: https://man.openbsd.org/look.

look {{prefix}} {{path/to/file}}

look -f -d {{prefix}} {{path/to/file}}

look -t {{,}}

look {{prefix}}