dotplan

troubleshooting & performance analysis

what’s in my ~bin

delta

Displays delta between two values

lovebox:~ gjl$ delta 75 50
1=75 2=50
-33.00
lovebox:~ gjl$ delta 50 75
1=50 2=75
50.00

sum

Sums values in a given column
(nums testfile)

lovebox:bin gjl$ sum /tmp/nums 1
55.00
lovebox:bin gjl$ cat /tmp/nums | sum - 1
55.00

avg

Print the average of a given sum of columns
(nums testfile)

lovebox:bin gjl$ avg /tmp/nums 1
5.50
lovebox:bin gjl$ cat /tmp/nums | avg - 1
5.50

Leave a Reply

*

© 2009 dotplan. All Rights Reserved.

This blog is powered by Wordpress and Magatheme by Bryan Helmig.