|
|
| |
Forum Overview
::
American McGee's Honda Civic
|
| |
|
by Entropy Stew 06/25/2007, 1:39pm PDT |
|
 |
|
 |
|
Ray of Light wrote:
This would only get one layer of subdirectories.
I assumed one layer of subdirs based on the description.
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.
I was going to suggest that one next, but you're right. find -exec is rather fiddly. It irritates me to see such a simple recursive map being so difficult to pull off without resorting to hacks.
-/ES/- |
|
 |
|
 |
|
|
|
| |
Directory merge by Horrible Gelatinous Blob 06/24/2007, 3:55am PDT 
Archive and extract them without paths NT by In WinRar or whatever 06/24/2007, 5:50am PDT 
That's an ingenious work around. NT by I'm impressed. 06/24/2007, 2:44pm PDT 
Searching the folder for *.* and CTRL+C'ing the results works okay, too. by Worm 06/25/2007, 12:53pm PDT 
In unix, you would type "cp */* ." NT by Smug Stew 06/25/2007, 10:30am PDT 
no :( by Ray of Light 06/25/2007, 11:24am PDT 
Re: no :( by Entropy Stew 06/25/2007, 1:39pm PDT 
I ended up taking the rar/unrar advice by Horrible Gelatinous Blob 06/25/2007, 1:36pm PDT 
|
|
| |
|
| |