grep ip address
This commit is contained in:
onceupon
2018-09-06 14:31:00 +08:00
committed by GitHub
parent ba9a274113
commit f3779013a2

View File

@ -32,6 +32,12 @@ http://onceupon.github.io/Bash-Oneliner/
## Grep ## Grep
##### Grep only IP address
```bash
grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}
```
##### Grep string starting with (e.g. 'S') ##### Grep string starting with (e.g. 'S')
```bash ```bash
grep -o 'S.*' grep -o 'S.*'