By Alvin Alexander. Last updated: September 11, 2016
This is a dangerous Unix command, but if you want to move a bunch of files from their subdirectories into your current directory, this find
and mv
command works:
find . -type f -exec mv {} . \;
That command finds all files beneath the current directory, and moves them into the current directory. I just moved a bunch of files from their (iTunes) subdirectories into my current working directory, and that find and move command did the trick. (But again, it’s a dangerous command, be careful out there.)