This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Bed file grepping from the list

Hi Stars, I have a bed file of size 20 GB and I need to grep some names(~5000) from the list. So I used this command for this

grep -wf list input.bed >out_grepped.txt

But it is taking more than a week to finish, most will fail. Is there any other methods to do the same

bed grep awk

Like some names , examples cat0.1,cat0.45,dog.01 ..

1 answer

sort both files and use join https://linux.die.net/man/1/join

Log in to answer this question.