URGENT: UNIX command line to solve the median problem.

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

Post 3+ Months Ago

My input:
10
15
20

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.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 50 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
 
cron
 

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