title: Delete all files but keep all directories in a bash script?
body: <p>I'm trying to do something which is probably very simple, I have a directory structure such as:</p>
  
  <pre><code>dir/
      subdir1/
      subdir2/
          file1
          file2
          subsubdir1/
              file3
  </code></pre>
  
  <p>I would like to run a command in a bash script that will delete all files recursively from dir on down, but leave all directories. Ie:</p>
  
  <pre><code>dir/
      subdir1/
      subdir2/
          subsubdir1
  </code></pre>
  
  <p>What would be a suitable command for this?</p>