LOOK(1) BSD Reference Manual LOOK(1) NNAAMMEE llooookk - display lines beginning with a given string SSYYNNOOPPSSIISS llooookk [--ddff] [--tt _t_e_r_m_c_h_a_r] _s_t_r_i_n_g [_f_i_l_e] DDEESSCCRRIIPPTTIIOONN The llooookk utility displays any lines in _f_i_l_e which contain _s_t_r_i_n_g as a prefix. As llooookk performs a binary search, the lines in _f_i_l_e must be sorted. If _f_i_l_e is not specified, the file _/_u_s_r_/_s_h_a_r_e_/_d_i_c_t_/_w_o_r_d_s is used, only alphanumeric characters are compared and the case of alphabetic charac- ters is ignored. Options: --dd Dictionary character set and order, i.e. only alphanumeric char- acters are compared. --ff Ignore the case of alphabetic characters. --tt Specify a string termination character, i.e. only the characters in _s_t_r_i_n_g up to and including the first occurrence of _t_e_r_m_c_h_a_r are compared. The llooookk utility exits 0 if one or more lines were found and displayed, 1 if no lines were found, and >1 if an error occurred. FFIILLEESS /usr/share/dict/words the dictionary SSEEEE AALLSSOO grep(1), sort(1) CCOOMMPPAATTIIBBIILLIITTYY The original manual page stated that tabs and blank characters partici- pated in comparisons when the --dd option was specified. This was incor- rect and the current man page matches the historic implementation. HHIISSTTOORRYY LLooookk appeared in Version 7 AT&T Unix. 4.4BSD June 14, 1993 1