BedTotalSize
From genomewiki
Jump to navigationJump to search
you can do this in awk with the single line statement:
awk '{sum += $3-$2}END{printf "total size: %d\n",sum}' file.bed
you can do this in awk with the single line statement:
awk '{sum += $3-$2}END{printf "total size: %d\n",sum}' file.bed