ezekg/xo
View on GitHub ↗ ★ 185 Go
Command line utility that composes regular expression matches.
4 mentions on Hacker News by 2 people: 3 stories, 1 comment · first 2016-01-14 · latest 2017-10-27
20082026
-
I built a command line tool awhile back for doing things like this: https://github.com/ezekg/xo You could do something like, echo 'Joanna likes apples' | xo '/^(\w+) (?:likes|prefers) (\w+)/{"user":"$1","fruit":"$2"}/i'
comment by ezekg · 2017-10-27 · in Show HN: I got tired of parsing texts, hope you find Komlog useful