title: How to watch file changes on Mac OSX using FSWatch?
body: <p>I'm trying to use <a href="https://github.com/alandipert/fswatch" rel="noreferrer">fswatch</a> to translate the following lines from a linux bash script to be able to run it on Mac OSX:</p>
  
  <pre><code>inotifywait -r -m 'myfolder/' | while read MODFILE
  do
      echo "something"
  done
  </code></pre>
  
  <p>Since inotifywait doesn't work on Mac OSX I want to substitute the first line for <a href="https://github.com/alandipert/fswatch" rel="noreferrer">FSWatch</a>. Although the README refers to the fswatch man page, it doesn't provide a link to it and a search around the internet doesn't get me anything. So I tried messing around a bit. </p>
  
  <p>I created a folder called <code>testfswatch/</code> and I tried running the following commands in the parent folder and then adding and changing files on the <code>testfswatch/</code> folder:</p>
  
  <pre><code>fswatch -o testfswatch/ | echo "LALA"
  fswatch -o testfswatch/ | someSimpleProgram
  fswatch -o testfswatch/ | xargs -n1 -I{} echo "LALA"
  fswatch -o testfswatch/ | xargs -n1 -I{} ./someExecutable
  fswatch -o testfswatch/ | xargs -n1 echo "LALA"
  fswatch -o testfswatch/ | xargs -n1 someExecutable
  // And more variations of the above
  </code></pre>
  
  <p>None of these commands seem to do anything when I change or add files in the <code>tesfswatch/</code> folder though.</p>
  
  <p>Does anybody know what I'm doing wrong here? All tips are welcome!</p>