in reply to Re^4: Finding and sorting files in massive file directory
in thread Finding and sorting files in massive file directory
Use the script I gave you above to, for example, move all files starting with 'b' into a b/ subdirectory. Then wait a few minutes, or however long it could reasonably take for the process to finish writing the current file, then from the command line, simply:
If the rm fails due to too many files, then write another perl script similar to the one above, but using 'unlink' to remove each file one by one.$ tar -cfz .../some-path/b.tar.gz b/ $ tar -tfz .../some-path/b.tar.gz > /tmp/foo View /tmp/foo in a text editor to see if it looks reasonable, then $ rm -rf b/
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Finding and sorting files in massive file directory
by salva (Canon) on Jan 21, 2013 at 11:52 UTC | |
|
Re^6: Finding and sorting files in massive file directory
by CColin (Scribe) on Jan 21, 2013 at 12:58 UTC | |
by dave_the_m (Monsignor) on Jan 21, 2013 at 15:25 UTC |