Copy/moving files from mulitple sub-directories to the parent
Since moving to Mac I use the terminal more and more. Today I had an issue of having wanting to move 1000 files in 50+ sub folders to the parent. A quick Google search didn't come up with anything so I figured it couldn't be too hard.
My directories went like this
/parent /parent/subfolder1/file.1 /parent/subfolder1/file.2 /parent/subfolder1/file.3 /parent/subfolder2/file.1 /parent/subfolder2/file.2 and so on .... in reality each subfolder had 20 files in it.
So to copy the files out was easy: [sourcecode language="plain"]cp -r ./* ../[/sourcecode]
Swap the cp for mv to move them
| Tweet |
Let me guess... the 1000 icon library from FatCow? I had this same problem yesterday too--I wish I'd seen this before then! I tried several solutions, including one similar to yours, but couldn't get it to work. Maybe it's because I'm on Windows and not a Mac. I eventually had to move them all by hand with drag and drop... :(
[Add Comment]