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.
So my parent directory is provided as an argument to the shell script: eg:
. myShell.sh /myFolder/myDirectory
There are 100 directories under /myFolder/myDirectory
. For each "directory_i", i want to run:
java myProg directory_i
If someone can provide me with a working shell script that'll be perfect!