This commit is contained in:
nick
2018-05-25 19:14:26 +08:00
parent dd10642a36
commit 13e29a532c
5 changed files with 100 additions and 2 deletions

View File

@ -1,7 +1,9 @@
#### grep 命令
```
sudo grep -c '500' fielename.log #查找文件包含500的行数
sudo cat index.html | grep -o 'js' #只输出文件中匹配到的部分
```
#### sed 命令