[X-Unix] Flattening directory hierarchy

Brian Medley bpm-list-osx-unix at 4321.tv
Mon Nov 8 12:30:44 PST 2004


On Mon, Nov 08, 2004 at 01:16:07PM -0600, Steven Rogers wrote:

> Anyone know of a script or program that can take all the files
> from a directory hierarchy and copy them into one single
> directory?  For example, to take all the music files from your
> artist/album iTunes folders and dump them into one directory,
> or pull image files from a web site directory hierarchy into a
> single folder.

$ find . -type f -exec cp {} /Users/me/new_folder \;
                       ^^  May want to use CpMac

-- 
~`^`'~=-._.-=~'`^`'~=-._.-=~'^'~=-., \|/  (___)  \|/ _,.-=~'`^`
                                      @~./'O o`\.~@
      "Knowledge is Power"           /__( \___/ )__\  *PPPFFBT!*
         -- Francis Bacon               `\__`U_/'
 _.-=~'``'~=-._.-=~'``'~=-._.-=~'`^`'~= <____|'  ^^`'~=-.,__,.-=
~'^`'~=-._.-=~'`^`'~=-._.-=~'^'~=-.,__,.-==--^'~=-.,__,.-=~'`^`


More information about the X-Unix mailing list