Incidentally, why excel?
Could well have been achieved in a linux environment itself using OO, Libre, gnumeric etc. OK |
A round-up of test results.
Here are the five input files. The numeric values were chosen arbitrarily. Code:
/home/daniel/Desktop/LQfiles/dbm330i01.txt Code:
echo Code:
echo Code:
echo Code:
Daniel B. Martin |
Quote:
Code:
"dbm330i01.txt",12.25 Kevin Barry |
Well for mine you can see the 2 scripts output the same except digits after the decimal point, an easy fix on either side. The reason they will differ to the others is I used y < 100
and they used y > 100. This was driven from the second requirement: Quote:
So to have mine concur with the others is again a simple change: Code:
#Awk |
Test results, redux.
Thank you, grail, for minor corrections to your code. With those changes all results are equivalent. Apologies to you, ta0kira, for omitting your code. No offense intended. As an inexperienced player in the Linux world, I had never even heard of Rscript. Consequently I was unable to understand your code, unable to execute it. Let's hope that OP benefits from the many ideas presented in this thread. For sure, I did. Thanks to all who contributed in any fashion. Daniel B. Martin |
All times are GMT -5. The time now is 08:38 PM. |