https://github.com/aca/sgrep
Simple grep. Extract url, ip address, email ... from stdin.
https://github.com/aca/sgrep
command-line go golang
Last synced: 5 months ago
JSON representation
Simple grep. Extract url, ip address, email ... from stdin.
- Host: GitHub
- URL: https://github.com/aca/sgrep
- Owner: aca
- Created: 2019-10-28T12:25:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-31T04:54:15.000Z (over 5 years ago)
- Last Synced: 2024-11-05T22:41:40.730Z (over 1 year ago)
- Topics: command-line, go, golang
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 13
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sgrep
Simple grep. Extract url, ip address, email ... from stdin.
Install
---
```
go get -u github.com/aca/sgrep
```
Usage
---
```
» sgrep help
usage: sgrep [flags] pattern...
example:
cat txt | sgrep hostname ipv4
pattern:
hostname, host
ipv4, ip
ipv6
email
url, http
num, number
alpha
commit
mac, macaddress
uuid
flag:
-f int
field selector, replaces "awk '{print $3}'" as "-f3"
-s string
seperator (default " ")
```