egrep = grep -E 查看文件内容
最后更新于:2022-04-02 03:48:13
[TOC]
## 概述
1. egrep命令用于在文件内查找指定的字符串。
2. `egrep` 相等于 `grep -E `
## 语法
`egrep(选项)(查找模式)(文件名1,文件名2,……)
`
## 用法
### 在文件中查找内容
`egrep basedir bom.php`

:-: 可发现内容按照实际缩进实现
### 在当前目录查看 含有php的文件
```
> egrep php *
bom.php:
';