Filtering bed file
1
0
Entering edit mode
7.4 years ago
#### ▴ 220

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 • 3.6k views
ADD COMMENT
2
Entering edit mode
ADD REPLY
2
Entering edit mode
7.4 years ago
berge2015 ▴ 110

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

ADD COMMENT
0
Entering edit mode

Thanks

I got confuse with v ..it worked THanks

ADD REPLY

Login before adding your answer.

Traffic: 2611 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6