笔记本linux系统怎么用 关于linux系统基础入门教程(21)
导读:笔记本linux系统怎么用,3.文本内容处理 命令 解析 演示 grep str /tmp/test 在文件 ‘/tmp/test’ 中查找 “str” grep ^str /tmp/test 在文件 ‘/tmp/test’ 中查找以 “str” 开始的行 grep [0-9]
笔记本linux系统怎么用

3.文本内容处理
| 命令 | 解析 | 演示 | |
| grep str /tmp/test | 在文件 ‘/tmp/test’ 中查找 “str” |
| |
| grep ^str /tmp/test | 在文件 ‘/tmp/test’ 中查找以 “str” 开始的行 |
| |
| grep [0-9] /tmp/test | 查找 ‘/tmp/test’ 文件中所有包含数字的行 |
相关阅读
| |








