Open and work on a .doc file with bash script

Hello there....unix users :slight_smile:

I hope you can help me with this:

I need open a doc file or xls files and work this files whit a bash script.
For example: Open a doc file and copy information from a txt file in this doc file or xls file.
Is it possible?

Sorry for my english...I'm chilean (spanish language).
I'm wait for your answers. :wink:

It is possible to do so using OpenOffice and its scripting framework.

But in a server without graphic interface...is this possible?

catdoc | freshmeat.net