Skip to content

kcmerrill/kronk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Join the chat at https://gitter.im/kcmerrillkronk

kronk

kronk

Simple(r) text searching. A Marvin companion app.

Binaries || Installation

MacOSX Linux

via go:

$ go get -u github.com/kcmerrill/kronk

Usage

kronk requires input via stdin. Many ways to get data via stdin, but in this example we'll simply cat or curl a file into kronk.

$> stdin | kronk <arguments> <name:regular-expression>...

A simple 1 match example:

$> curl https://api.github.com/users/kcmerrill/repos | kronk 'repo:"full_name": "(.*?)"'

Multiple matches(must all yeild the same number of results)

$> curl https://api.github.com/users/kcmerrill/repos | kronk 'repo:"full_name": "(.*?)"' 'issues:"open_issues": (\d+)'

Using Marvin? Need dynamic inventory? Just remember to use the appropriate del based on your needs.

$> curl https://api.github.com/users/kcmerrill/repos | kronk --out inline 'repo:"full_name": "(.*?)"' 'issues:"open_issues": (\d+)'

Screencast/Demo

asciicast

About

Simple(r) text searching and data scraping

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages