title: MS Word Doc: Automating find/replace using Shell Scripts
body: <p>I have a number of word documents that I'd like to remove some elements from. What I would like to do is as follows: </p>
  
  <ol>
  <li>Copy and paste the entire contents of the word file (may not be necessary) and move it into a text file OR Convert .doc to .txt</li>
  <li>Using regex: replace <code>\[.*\]</code> with "" AND replace <code>\(.*\)</code> with "" </li>
  <li>Save the result to a text file with the same name as the original word document.</li>
  </ol>
  
  <p>Thoughts and direction appreciated. As it stands now, I don't know how to do any of these things programatically. I'm doing this manually as it stands. </p>
  
  <p>If it matters, I'm using Ubuntu 11.04</p>