I've been trying to extract lines where a number in one columns falls within a particular range.
Lets say I have a file that looks as so:
chrom prediction chrom1 0.75 chrom2 0.5 chrom4 0.76
If I wanted to print lines where the prediction value was in the range from 0.75-0.8, my output would look as so:
chrom prediction chrom1 0.75 chrom2 0.76
I've tried this, but it failed. Where did I go wrong?
awk '$2 >= "0.7" && < "0.75" ' Coverage7_haploscores_removed.txt > range_07_075.txt