How to Flatten a Directory Structure (this has been surprisingly useful on more than one occasion this week)

find -type f -print0 | xargs -0 -I%%% mv %%% .

1 Comment

New comments are no longer accepted, so if you want to get in touch, send me an email.

Bri/Dad

I prefer: find -type f -exec mv {} . \;