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

Discussion in 'macOS' started by Benjamindaines, Aug 18, 2007.

  1. Benjamindaines macrumors 68030

    Benjamindaines

    Joined:
    Mar 24, 2005
    Location:
    A religiously oppressed state
    #1
    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.
     
  2. clevin macrumors G3

    clevin

    Joined:
    Aug 6, 2006
  3. gr8tfly macrumors 603

    gr8tfly

    Joined:
    Oct 29, 2006
    Location:
    ~119W 34N
    #3
    Create a new folder (cmd-shft-n). Select all the items in source folder. Drag to new folder.

    Otherwise, I'm confused too.
     
  4. Lixivial macrumors 6502a

    Lixivial

    Joined:
    Jan 13, 2005
    Location:
    Between cats, dogs and wanderlust.
    #4
    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.
     

Share This Page