Entering edit mode
4.5 years ago
the_cowa
▴
40
Hi all, I need to grep positions from vcf files to make another vcf file so I used this command
less output.VCF|awk '{OFS="\t"; if ($2 >= 1166 && $2 <= 80082 ){ print }}' |grep -w "^scaffold329" > scaffold329_116-80082.vcf
But it is taking a long time to grep. Is there any way to speed up this task ?
Please use dedicated tools such as tabix to handle defined formats.