This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Filtering bed file

chr1 45 95 -

chr3 76 156 +

chr4 675 899 +

scaffold1 56 388 +

scaffold1 200 488 +

scaffold2 400 956 -

my bed file contains these lines and I want to remove the lines starting from scaffold any idea how to filter my bed file to exclude these lines ?

bed peaks

1 answer

try: grep -v '^scaff*' infile > outfile

Thanks

I got confuse with v ..it worked THanks

Log in to answer this question.