title: unix diff to file
body: <p>I'm having a little trouble getting the output of diff to write to file. I have a new and old version of a .strings file and I want to be able to write the diff between these two files to a .strings.diff file.</p>
  
  <p>Here's where I am right now:</p>
  
  <pre><code>diff -u -a -B $PROJECT_DIR/new/Localizable.strings $PROJECT_DIR/old/Localizable.strings &gt;&gt; $PROJECT_DIR/diff/Localizable.strings.diff
  fgrep + $PROJECT_DIR/diff/Localizable.strings.diff &gt; $PROJECT_DIR/diff/Localizable.txt
  </code></pre>
  
  <p>The result of the diff command writes to Localizable.strings.diff without any issues, but Localizable.strings.diff appears to be a binary file. Is there any way to output the diff to a UTF-8 encoded file instead?</p>
  
  <p>Note that I'm trying to <em>just</em> get the additions using fgrep in my second command. If there's an easier way to do this, please let me know.</p>
  
  <p>Thanks,</p>
  
  <p>Sean</p>