BedTotalSize

From genomewiki
Revision as of 09:16, 15 September 2006 by Max (talk | contribs) (deleted the useless python thing, hiram's version if of course better and faster as well)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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