Skip to content

flatten directory structure

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

Published inenglish

Be First to Comment

Leave a Reply

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