Breakdown:
<pre>
1. stuff everything up to the semicolon into a loop variable named '$x'
2. look for directories that are immediate descendants of the current directory
3. sort them
4. don't include hidden directoriesthe current directory
6. with these: echo the name of the directory as a 'heading' in the report
7. find the files per directory