Quote:
|
Originally Posted by mike_bike_kite
It's been 5 days since I gave you a complete solution to your problem. Something tells me I wouldn't even of got this note of thanks if it wasn't for the fact you can't get the program to work! Why can't it work? it works perfectly well for me when I tried it with your data and more complex examples. I assume you realise it's a program and not something you type out line by line. Unix generally supplies an error message that indicates the problem. I suggest you give me this. Is the tmp.dat file being created and does it contain data? What does the $RECS variable contain after it is set. Are you passing your data through the program? No - the program given works perfectly well as it stands.
|
Hi, mike_bike_kite
I try it again the way you teach me d. It's worked now. But the median is 10 instead of 15. You know what problem is going on? The average is calculated correctly which is 15.
Mike, you got any better suggestion to make the median is 15 instead of 10. Hope you can help me think of one advance command line that I can apply to find out the median and average for another huge file at next time. Really thanks for your help.