How do I unzip .zip files in multiple directories?
<p>My directory looks like this</p>

<pre><code>./Dir1/Some file.zip
./Dir2/Some other file.zip
./UnzipFiles.sh
</code></pre>

<p>I want to loop through each directory in <code>./</code> and unzip each one's zip file.</p>

<p><code>UnzipFiles.sh</code> looks like this:</p>

<pre><code>#!/bin/bash

for i in ./*/*.zip
do
        cd "$i";
        unzip "$i";
done
</code></pre>

<p>But that unzips everything into <code>./</code>. I want each .zip file's contents to unzip into the directory containing it.</p>

<p>How do I do this in bash?</p>