Best way to move contents of one folder into another newly created folder?

Benjamindaines

macrumors 68030
Original poster
Mar 24, 2005
2,837
1
A religiously oppressed state
I am looking for a way (preferable using Automator or Terminal) to select the entire contents of a folder, create a new folder and move everything in the first folder to the new one. Oh yeah, and the original folder cannot be modified (other than having everything moved out of it), so you can't copy the folder, paste it in a new location, delete the original and create a new one with the same name.

--thanks.
 

gr8tfly

macrumors 603
Oct 29, 2006
5,298
48
~119W 34N
Create a new folder (cmd-shft-n). Select all the items in source folder. Drag to new folder.

Otherwise, I'm confused too.
 

Lixivial

macrumors 6502a
In terms of Terminal, these are basic operations.

Code:
mkdir /path/to/the/new/dir; mv /path/to/dir/to/copy/from/* /path/to/the/new/dir
The semicolon chains the two commands onto one line. Note the asterisk, because it tells mv to move everything within the directory.