grep string starting with a string
This commit is contained in:
onceupon 2018-03-31 09:24:45 +08:00 committed by GitHub
parent ac371598b8
commit 6a1ec40741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,11 @@ http://onceupon.github.io/Bash-Oneliner/
## Grep ## Grep
##### Grep string starting with (e.g. 'S')
```bash
grep -o 'S.*'
```
##### Extract text bewteen words (e.g. w1,w2) ##### Extract text bewteen words (e.g. w1,w2)
```bash ```bash