I want to have an awk function to compute the median of an array (may not be sorted).
The above is a similar post but it is not the same as this one because the input on the above post is a sorted stream.
Could anybody show me the function to compute the median of an array?