title: Set svn:ignore recursively for a directory structure
body: <p>I have imported a huge hierarchy of maven projects into IntelliJ idea, now idea has created .iml projects on all different levels. I would like to svn:ignore these files.</p>
  
  <p>There are several similar questions, for example this one: <a href="https://stackoverflow.com/q/6878673/342852">svn (subversion) ignore specific file types in all sub-directories, configured on root?</a></p>
  
  <p>However: the answer is always to apply <code>svn:ignore</code> with the <code>--recursive</code> flag. That's not what I am looking for, I just want to ignore the files I created, not set a property on the hundreds of directories underneath.</p>
  
  <p>Basically, what I have is the output of </p>
  
  <pre><code>svn status | grep .iml
  </code></pre>
  
  <p>which looks like this:</p>
  
  <pre><code>?       foo/bar/bar.iml
  ?       foo/baz/phleem.iml
  ?       flapp/flapp.iml
  </code></pre>
  
  <p>etc.</p>
  
  <p>What I would like to do is for each entry <code>dir/project.iml</code> to add <code>svn:ignore *.iml</code> to <code>dir</code>. I am guessing I have to pipe the above grep to <code>sed</code> or <code>awk</code> and from there to <code>svn</code>, but I am at a total loss as to the exact sed or awk command on one hand and the exact svn command (with which I won't override existing svn:ignore values) on the other hand.</p>
  
  <p>Update: what I am also not looking for are solutions based on <code>find</code>, because possibly there are projects in this hierarchy where .iml files are in fact committed and I wouldn't want to interfere with those projects, so I'm looking to add the property only for .iml files my IDE has created.</p>