mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2024-11-23 05:03:52 +00:00
add grep
Grep lines not begin with string (e.g. #)
This commit is contained in:
parent
204c1bdb7a
commit
a2702989e6
1 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,12 @@ grep -o '[0-9]*'
|
|||
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")
|
||||
|
||||
```bash
|
||||
|
|
Loading…
Reference in a new issue