This commit is contained in:
onceupon 2016-07-20 12:08:30 +08:00 committed by GitHub
parent 1441c484a4
commit 12370acf8a

View File

@ -34,7 +34,13 @@ grep -o -P '(?<=w1).*(?=w2)'
#####grep lines without word (e.g. bbo)
```bash
grep -v bbo
grep -v bbo filename
```
#####grep only one/first match (e.g. bbo)
```bash
grep -m 1 bbo filename
```
#####grep and count (e.g. bbo)