> For the complete documentation index, see [llms.txt](https://hezhiqiang.gitbook.io/linux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hezhiqiang.gitbook.io/linux/ming-ling/look.md).

# look

显示文件中以指定字符串开头的任意行

## 补充说明

**look命令** 用于显示文件中以指定字符串开头的任意行。

### 语法

```
look(选项)(参数)
```

### 选项

```
-a：使用另一个字典文件web2，该文件也位于/usr/dict目录下；
-d：只对比英文字母和数字，其余一概忽略不予比对；
-f：忽略字符大小写差别；
-t<字尾字符串>：设置字尾字符串。
```

### 参数

* 字符串：指定要查找的字符串；
* 文件：指定要查找的目标文件。
