[plug] Recursive Copying of Folder Contents
Jason Posavec
jasonposavec at iinet.net.au
Thu Jun 4 10:59:17 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...
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://www.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au
>
That would only copy files, and not folders? If so, it proves that the
best solutions are always the simplest and most elegant. At first
glance, that command looks like it would copy *everything* in the 3
folders under Music, not just the files.
Jason
More information about the plug
mailing list