title: inotify and bash
body: <p>I am trying to make a bash script with inotify-tools that will monitor a directory and alter all new files by removing lines containing "EE". Once altered it will move the files to another directory</p>
  
  <pre><code>    #!/bin/sh
      while inotifywait -e create /home/inventory/initcsv; do
        sed '/^\"EE/d' Filein &gt; fileout #how to capture File name?
        mv fileout /home/inventory/csvstorage
      fi
      done
  </code></pre>
  
  <p>Please help?</p>