<p>as title, there is no overlap region in bed file. Thanks</p>

<p>You can do it with the following command line:</p>

<pre><code>cat file.bed | awk -F'\t' 'BEGIN{SUM=0}{ SUM+=$3-$2 }END{print SUM}'
</code></pre>
