Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/evryPublic

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

License

NotificationsYou must be signed in to change notification settings

k1LoW/evry

Repository files navigation

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

screencast

Key features ofevry are:

  • Split STDIN streamevery N lines orevery 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

deb:

Usedpkg-i-from-url

$export EVRY_VERSION=X.X.X$curl -L https://git.io/dpkg-i-from-url| bash -s -- https://github.com/k1LoW/evry/releases/download/v$EVRY_VERSION/evry_$EVRY_VERSION-1_amd64.deb

RPM:

$export EVRY_VERSION=X.X.X$yum install https://github.com/k1LoW/evry/releases/download/v$EVRY_VERSION/evry_$EVRY_VERSION-1_amd64.rpm

apk:

Useapk-add-from-url

$export EVRY_VERSION=X.X.X$curl -L https://git.io/apk-add-from-url| sh -s -- https://github.com/k1LoW/evry/releases/download/v$EVRY_VERSION/evry_$EVRY_VERSION-1_amd64.apk

homebrew tap:

$brew install k1LoW/tap/evry

manually:

Download binary fromreleases page

go get:

$go get github.com/k1LoW/evry

docker:

$docker pull ghcr.io/k1low/evry:latest

References

About

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

[8]ページ先頭

©2009-2025 Movatter.jp