mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-26 06:17:01 +00:00
add grep
grep ip address
This commit is contained in:
parent
ba9a274113
commit
f3779013a2
@ -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.*'
|
||||||
|
Loading…
Reference in New Issue
Block a user