I have an hierarchy of folders like this:
MainFolder | | - 01 | - 02 | - 03 | - 04 | - 05 | - 06 | - 07 | - 08 | - 09 | - 10
And inside each of this ten folders, I have other 10 folders, and so on. In total, I have 10 levels.
I would like to move ALL files, including ALL possible extensions (including zip and rar) to a folder called FinalFolder.
I'm trying to use the following command:
find MainFolder -type f -print0 | xargs -0 mv -t FinalFolder
And is "working". In total, I'm catching 5k files, but I know that I have 25k files, so is not catching all. What could be the problem? And more important, how to fix it?