mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-26 06:17:01 +00:00
add grep
Grep lines not begin with string (e.g. #)
This commit is contained in:
parent
204c1bdb7a
commit
a2702989e6
@ -47,6 +47,12 @@ grep -o '[0-9]*'
|
|||||||
grep -v bbo filename
|
grep -v bbo filename
|
||||||
```
|
```
|
||||||
|
|
||||||
|
##### Grep lines not begin with string (e.g. #)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
grep -v '^#' file.txt
|
||||||
|
```
|
||||||
|
|
||||||
##### Grep variables with space within it (e.g. bbo="some strings")
|
##### Grep variables with space within it (e.g. bbo="some strings")
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user