2 ms·
I built a command line tool awhile back for doing things like this: https://github.com/ezekg/xo https://github.com/ezekg/xo You could do something like, e
by ezekg 9y ago
I built a command line tool awhile back for doing things like this: https://github.com/ezekg/xo https://github.com/ezekg/xo
You could do something like,
echo 'Joanna likes apples' | xo '/^(\w+) (?:likes|prefers) (\w+)/{"user":"$1","fruit":"$2"}/i'