Grep lines not begin with string (e.g. #)
This commit is contained in:
onceupon 2017-11-29 16:31:10 +08:00 committed by GitHub
parent 204c1bdb7a
commit a2702989e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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