Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bigflood/strmatch

search for regexp in stdin
https://github.com/bigflood/strmatch

Last synced: about 2 months ago
JSON representation

search for regexp in stdin

Awesome Lists containing this project

README

        

# strmatch
search for regexp in stdin

#### install
```bash
$ go get -u github.com/bigflood/strmatch
```

#### usage example

```bash
$ ls -l
total 41
-rw-r--r-- 1 xxxxx 1049089 35147 Jul 19 17:35 LICENSE
-rw-r--r-- 1 xxxxx 1049089 1755 Jul 19 17:42 main.go
-rw-r--r-- 1 xxxxx 1049089 38 Jul 19 17:35 README.md

$ ls -l | strmatch "\d\d ([^ ]+)$"
LICENSE
main.go
README.md

$ ls -l | strmatch -sep " " "\d\d ([^ ]+)$"
LICENSE main.go README.md
```