URGENT: UNIX command line to solve the median problem.

  • patrick chia
  • Newbie
  • Newbie
  • patrick chia
  • Posts: 5

Post 3+ Months Ago

My input:

My desired output:
Median = 15

**From the three figures in above, I know that 15 is the median. How can I use the UNIX command line to find it out automatically? My senior is advised me can use the 'awk' command line and the 'if' 'else' condition at the same time. Apart from that, perl seem like function also. Hope any UNIX expert can help me solve this problem. Really thanks a lot for your help.
  • joebert
  • Genius
  • Genius
  • User avatar
  • Posts: 13511
  • Loc: Florida

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 33 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2016. Ozzu® is a registered trademark of Unmelted, LLC.