Question
Assuming I have
dir 1/dir 2/file 1
dir 3/dir 4/file 2
(spaces in directory and file names are intentional)
I want to end up with
dir 1/file 1
dir 3/file 2
Related but incomplete answers
This answer moves all the files into the current parent directory (instead of each file's parent directory)
find . -maxdepth 1 -exec mv {} .. \;
This answer prints out each parent directory but I'm not sure how to do the moving.
find . -name '.user.log' | xargs -I{} dirname {}