Skip to main content
Question Protected by dr_
edited tags
Link
Braiam
  • 36.9k
  • 29
  • 114
  • 176
Tweeted twitter.com/StackUnix/status/1183080031586803715
deleted 4 characters in body
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 266

I have a list of numbers in a file, one per line. How can I get the minimum, maximum, median and average values? I want to use the results in a bash script.

Although my immediate situation is for integers, a solution for floating-point numbers would be useful down the line, but a simple integer method is fine...

I have a list of numbers in a file, one per line. How can I get the minimum, maximum, median and average values? I want to use the results in a bash script.

Although my immediate situation is for integers, a solution for floating-point numbers would be useful down the line, but a simple integer method is fine...

I have a list of numbers in a file, one per line. How can I get the minimum, maximum, median and average values? I want to use the results in a bash script.

Although my immediate situation is for integers, a solution for floating-point numbers would be useful down the line, but a simple integer method is fine.

added 6 characters in body; edited title; deleted 1 characters in body
Source Link
Peter.O
  • 33.8k
  • 32
  • 120
  • 167
Loading
edited title
Link
Peter.O
  • 33.8k
  • 32
  • 120
  • 167
Loading
Source Link
Peter.O
  • 33.8k
  • 32
  • 120
  • 167
Loading