title: decrypt multiple OpenPGP files in a directory
body: <p>I have several hundred gpg encrypted files in a directory, of the format filename.xyz.gpg where "xyz" is some arbitrary extension. I need to decrypt all of the files to generate filename.xyz decrypted in such a way that I don't have to manually enter the password for each file.</p>
  
  <p>I have tried the following for directory "Testing":</p>
  
  <pre><code>for file in 'ls Testing'; do (echo &lt;password&gt;|gpg --passphrase-fd 0 -d $file 
  --output     $file.decrypted);
  </code></pre>
  
  <p>I just wind up with a command prompt >, and nothing happens.</p>
  
  <p>What is the matter with my syntax? Is there some more efficient way to do this without a bash shell loop?</p>