Skip to content

Tabcorp/cli-average

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cli-average

Average values from stdout over a given interval

npm install -g cli-average

Usage

Say you have the following shell script that outputs numbers on stdout

for i in {1..50}; do
  echo $RANDOM;
  sleep 0.3;
done

You can pipe it into avg to generate averages of those values over a given time interval

./random.sh | avg

Arguments

  • avg -t 10s: time interval to average the values over

About

Average values from stdout over a given interval

Resources

Stars

Watchers

Forks

Packages

No packages published