Entering edit mode
7.5 years ago
aishwaryamandava7
▴
10
I need to loop through bedtools over multiple files. There are 40 files that i should perform bedtools intersect with another file on shell. This is what i gave:
for i in temp*
do
bedtools intersect -a A.bed -b $i -v
done
However, this did not work. Is there anyother way that this can be done?
Try putting the
-v
before the-a
.