Mac: How to flatten a directory structure

I wanted to upload a lot of videos to my picasa cloud
The problem: videos are in sub-sub-folders by date, and I don’t want to open each sub-sub-folder and drag the video from there…
The solution: a command that flattens the directory structure:

find ‘/path/to/source/folder’ -iname ‘*.*’ -exec cp \{\} ‘/path/to/destination/folder’ \;

Author: nurnachman

Software Developer, Love Cats.

One thought on “Mac: How to flatten a directory structure”

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.