[plug] Recursive Copying of Folder Contents

Tim White timwhite88 at gmail.com
Thu Jun 4 09:18:13 WST 2009


Michael Holland wrote:
> Jason Posavec wrote:
>
> > Music/Artist/Album/Tracks. I want to copy all the music files to a
> > common folder.
>
> So all files are at the same depth? that's not really recursion.
>
>
> $ cp Music/*/*/*  common-folder
>
> If you manage to hit ARG_MAX, then you are an evil pirate.   aaarrrrr...

Or then you'd need to split the copy's into sections.
i.e
cp Music/{A-D}*/*/*  common-folder
cp Music/{E-H}*/*/*  common-folder
...

Tim



More information about the plug mailing list