Hello,
My input files have following. I need to compute counts that fall in each interval mention in FILE2 using third column in FILE1.
I am looking for ways other then using SQLITE. My FILE1 has more than 10 million lines so linear search is not a good option.
File1:
so 10 0.05
so 11 0.03
so 25 0.15
so 35 0.3
so 36 0.25
so 37 1
ge 14 0.12
ge 20 0.4
File2:
so 10 20
so 30 40
ge 10 30
sample output:
so 0.08
so 1.55
ge 0.52
Thanks in advance,
rkk
In reply to Count in intervals by rkk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |