Forum Overview :: American McGee's Honda Civic
 
no :( by Ray of Light 06/25/2007, 11:24am PDT
This would only get one layer of subdirectories. The zsh has variable-depth wildcarding if extended globs are enabled (mv **/* .), but you will get funny results because it matches directories as well as files. Also, you will get "arg list too long" if the tree of is any real size. The job is often done with a find-xargs combo (which does many execs -- slow -- and fails on files with special characters in them) or a perl script.

It turns out that the easiest way to do it (in unix) is a zip-unzip combo with paths junked, which is basically what this guy (who isn't me) suggested.
PREVIOUS NEXT REPLY QUOTE
 
Directory merge by Horrible Gelatinous Blob 06/24/2007, 3:55am PDT NEW
    Archive and extract them without paths NT by In WinRar or whatever 06/24/2007, 5:50am PDT NEW
        That's an ingenious work around. NT by I'm impressed. 06/24/2007, 2:44pm PDT NEW
            Searching the folder for *.* and CTRL+C'ing the results works okay, too. by Worm 06/25/2007, 12:53pm PDT NEW
    In unix, you would type "cp */* ." NT by Smug Stew 06/25/2007, 10:30am PDT NEW
        no :( by Ray of Light 06/25/2007, 11:24am PDT NEW
            Re: no :( by Entropy Stew 06/25/2007, 1:39pm PDT NEW
    I ended up taking the rar/unrar advice by Horrible Gelatinous Blob 06/25/2007, 1:36pm PDT NEW
 
powered by pointy