neatlink
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 %%% .
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 %%% .
Justinsomnia is licensed under a
Creative Commons Attribution 3.0 License.
Please see my Attribution Policy for more information.
1 comment
Bri/Dad
I prefer: find -type f -exec mv {} . \;