title: Shell script help! Looping over directories under a directory
body: <p>I want to write a shell script that loops through all directories under a directory, and call a java program with the directory name as an argument at each iteration.</p>
  
  <p>So my parent directory is provided as an argument to the shell script: eg: </p>
  
  <pre><code>. myShell.sh  /myFolder/myDirectory
  </code></pre>
  
  <p>There are 100 directories under <code>/myFolder/myDirectory</code>. For each "directory_i", i want to run:</p>
  
  <pre><code>java myProg directory_i
  </code></pre>
  
  <p>If someone can provide me with a working shell script that'll be perfect!</p>