title: Replace parentheses and spaces in filenames with underscore
body: <p>I use this line to remove blank spaces on folder name</p>
  
  <pre><code>find /tmp/ -depth -name "* *" -execdir rename 's/ /_/g' "{}" \;
  </code></pre>
  
  <p>Is there a way to remove SPACES and PARENTHESES from filename and put underscore?</p>
  
  <p>For example, I have:</p>
  
  <pre><code>|-- a_dir
  |   `-- (1) file with spaces and parentheses.pdf
  `-- b_dir
      |-- (43) another file with spaces (1).pdf
      `-- (132) yet another file with spaces (3343).pdf
  </code></pre>
  
  <p>Must become</p>
  
  <pre><code>|-- a_dir
  |   `-- 1_file_with_spaces_and_parentheses.pdf
  `-- b_dir
      |-- 43_another_file_with_spaces_1.pdf
      `-- 132_yet_another_file_with_spaces_3343.pdf
  </code></pre>