bmtool

Download the script: ./bmtool

You need Tcl to run it.

Some examples for extractionfiles and output schemata: