Bash/Shell one-liner to move all files from sub-directories to current directory.

find . -mindepth 2 -type f -print -exec mv {} . \;

Leave a Reply

Your email address will not be published. Required fields are marked *