LOOKSection: User Commands (1)Index BSD mandoc NAMElook - display lines beginning with a given stringSYNOPSISlook [-dfa ] [-t termchar ] string [file ]DESCRIPTIONThe look utility displays any lines in file which contain string as a prefix. As look performs a binary search, the lines in file must be sorted (where sort(1) got the same options -d and/or -f that look is invoked with).If file is not specified, the file /usr/share/dict/words is used, only alphanumeric characters are compared and the case of alphabetic characters is ignored. Options:
The look utility exits 0 if one or more lines were found and displayed, 1 if no lines were found, and >1 if an error occurred. FILES
SEE ALSOgrep(1), sort(1)COMPATIBILITYThe original manual page stated that tabs and blank characters participated in comparisons when the -d option was specified. This was incorrect and the current man page matches the historic implementation.HISTORYLook appeared in Version 7 AT&T Unix.Index
Created from the Linux Online Manual Pages |