Unix/Linux过滤器:选取(grep、fgrep、egrep、look)

30 阅读1分钟

grep:从标准输入或文件读取数据,抽取所有包含特定模式的行,并写到标准输出。
grep options pattern [file...]
比如grep harley /etc/passwd