手册页部分 1: 用户命令

退出打印视图

更新时间: 2014 年 7 月
 
 

look(1)

名称

look - find words in the system dictionary or lines in a sorted list

用法概要

/usr/bin/look [-d] [-f] [-tc] string [filename]

描述

The look command consults a sorted filename and prints all lines that begin with string.

If no filename is specified, look uses /usr/share/lib/dict/words with collating sequence –df.

look limits the length of a word to search for to 256 characters.

选项

–d

Dictionary order. Only letters, digits, TAB and SPACE characters are used in comparisons.

–f

Fold case. Upper case letters are not distinguished from lower case in comparisons.

–tc

Set termination character. All characters to the right of c in string are ignored.

文件

/usr/share/lib/dict/words

spelling list

属性

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/extended-system-utilities

另请参见

grep(1), sort(1), attributes(5)