Finding range of numbers in a huge file
If there is a huge file with millions of lines and all lines have numbers with tab separation and no line has more than 15 numbers, let say all number are between 10000 to 35000, what tools/programming language should I use to find out the the most significant range in the numbers e.g. 80% of the numbers are between 18000 to 27000 or 40% of the numbers are between 18000 to 27000 ? Can you suggest some thing ?