I have a directory with a very large number of subdirectories (~800) that were generated programmatically. I want to get a count of the number of files in each of these subdirectories to check for anomalies (if the code broke on a run then some of the files will be missing). What's a quick way to do this? The sort of output I'm looking for is:
Name_of_Folder_1 [# of files in Folder 1]
Name_of_Folder_2 [# of files in Folder 2]
...
diff
will happily report the differences between folders.diff folder1 folder2
. – steve Aug 12 '15 at 20:30