Move files in current subdirectories to the current directory.
find . -mindepth 2 -type f -exec mv -t . -i '{}' +
Delete local folders that are empty.
find . -empty -type d -delete
Move files in current subdirectories to the current directory.
find . -mindepth 2 -type f -exec mv -t . -i '{}' +
Delete local folders that are empty.
find . -empty -type d -delete
Be First to Comment