Linux Bash

简单应用

2018-12-16  本文已影响14人  迷糊银儿
Qufangdemac:test qfcomputer$ grep -o hello a.sh |wc -l
       8
// -o代表的是只输出匹配的选项。
Qufangdemac:test qfcomputer$ grep hello a.sh |wc -l
       4
Qufangdemac:test qfcomputer$ head -3 a.sh
this is a beautiful kit
hello world kitty hhhh
hello fuzi hello shenmu
Qufangdemac:test qfcomputer$ tail -3 a.sh
hello fuzi hello shenmu
hello inner hello xian
hello good morning hello hello china
lsof -i:8080
上一篇下一篇

猜你喜欢

热点阅读