linux - Command to list word completions -
i once found built-in command take prefix argument , return words complete word. example,
>> command cali california calibrate calibration ........
of course list lot more words, in alphanumerical order. useful, , optionally took file other default in.
i'm not trying produce behavior: there million ways use grep
, sed
, awk
, perl
, or insert turing-complete language here
this. i'm looking command.
unfortunately it's hard google when don't remember name, while might not have been posix standard common linux utility, know called?
found it: it's called look
, , seems have been around unix since v7. (the man page dated 1993!)
it binary search on optional second argument find matches, defaulting /usr/share/dict/words
.
Comments
Post a Comment