Depending on the complexity of your needs, you can potentially use Apache Tika . Tika calls on the POI (and other libraries) and provides you with XHTML or a text version of the document. If you just need a simple linux command, that might be enough.
Otherwise, it may depend on your Java skills. The POI should do whatever you need, but you need to write some code to capture the bits of interest to you. Check out the quick start guide to get started.
(I don't know about xlrd, sorry)
source share