How do I transfer all the contents of a file based on a criteria to another folder?
In Terminal
mkdir -p path/to/target/{0,5,10}
cd path/to/Frames
mv */*/0/* path/to/target/0/
mv */*/5/* path/to/target/5/
mv */*/10/* path/to/target/10/

PS: Use mv -i to get prompted in case of identically named files.