I have searched and searched but have not found an answer to this question.
Here is the scenario: I just ripped my entire CD collection to free lossless audio codec (FLAC) for archive. I also have some high quality lossy .m4a OR .mp3 in this archive. This is stored in DIRECTORY01/artist - album/*.flac structure. All relevant files in this directory are either .flac,.m4a or .mp3
Then I transcoded this entire directory to ogg vorbis, for actual day-to-day use and for my portable media player. This is stored in DIRECTORY02/artist - album/*.ogg structure. All relevant files are .ogg.
Now I want to verify that all is well. I used diff to compare the number of folders (and verify that they are the same. Then I counted the number of flac and ogg files (respectively) in each.
Problem: there are three extra .ogg files in the .ogg folder, somehow, somewhere. As each parent directory contains 526 subfolders, I would like to know how to automatically identify the directories that differ only in file count of specific .ogg or .flac/.m4a/.mp3 file types (ignoring any .txt, .log, .nfo, .cue, .jpg, etc).
So ideally, whatever command(s) I run, the result would be a report that ignores common subdirectories with common file counts, and helps me identify specifically any directories that have differing ".ogg or .flac/.m4a/.mp3" file counts.
Is this possible? I am also open to other suggestions/logics for verifying that all X number of .flac/.m4a/.mp3 successfully transcoded to .ogg.