mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-26 06:17:01 +00:00
add grep
This commit is contained in:
parent
1441c484a4
commit
12370acf8a
@ -34,7 +34,13 @@ grep -o -P '(?<=w1).*(?=w2)'
|
|||||||
#####grep lines without word (e.g. bbo)
|
#####grep lines without word (e.g. bbo)
|
||||||
|
|
||||||
```bash
|
```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)
|
#####grep and count (e.g. bbo)
|
||||||
|
Loading…
Reference in New Issue
Block a user