num-utils

Command-line utilities for mathematical operations on numbers

brewmacoslinux
Try with needOr install directly
Source

About

Programs for dealing with numbers from the command-line

Commands

numsumnumrangenumgrepnumprocessnumaveragenuminterval

Examples

Sum all numbers in a file or stream$ numsum < numbers.txt
Generate a range of numbers from 1 to 100$ numrange 1 100
Calculate average of numbers in a file$ numaverage < data.txt