mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-12-23 16:56:35 +00:00
Create README.md
This commit is contained in:
parent
e664f45ef9
commit
d858cf7c88
@ -32,13 +32,13 @@ http://onceupon.github.io/Bash-Oneliner/
|
|||||||
grep -o -P '(?<=w1).*(?=w2)'
|
grep -o -P '(?<=w1).*(?=w2)'
|
||||||
```
|
```
|
||||||
|
|
||||||
##### grep lines without word (e.g. bbo)
|
##### Grep lines without word (e.g. bbo)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
grep -v bbo filename
|
grep -v bbo filename
|
||||||
```
|
```
|
||||||
|
|
||||||
##### grep only one/first match (e.g. bbo)
|
##### Grep only one/first match (e.g. bbo)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
grep -m 1 bbo filename
|
grep -m 1 bbo filename
|
||||||
|
Loading…
Reference in New Issue
Block a user