Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
cmd
 
 
doc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

evry Build Status GitHub release

evry split STDIN stream and execute specified command every N lines/seconds.

screencast

Key features of evry are:

  • Split STDIN stream every N lines or every N seconds.
  • Sequential IN -> Parallel execution -> Sequential OUT.

img

Usage

$ [STDIN] | evry [-l N or -s N] -c [COMMAND]

or

$ [STDIN] | evry [-l N or -s N] -- [COMMAND]

Count number of requests every 10 seconds

$ tail -F access.log | evry -s 10 -- wc -l

Show top 5 access rank every 1000 lines

$ tail -F access.log | evry -l 1000 -c 'cut -d" " -f7 | sort | uniq -c | sort -nr | head -5'

Install

homebrew tap:

$ brew install k1LoW/tap/evry

manually:

Download binany from releases page

go get:

$ go get github.com/k1LoW/evry

References

About

Split STDIN stream and execute specified command every N lines/seconds.

Topics

Resources

License

Packages

No packages published