in reply to Finding and sorting files in massive file directory
I have a directory with c. 2-3 million files (and growing) that I need to categorise and compress.
shell commands on the directory - find, ls etc - just hang!
Use wildcards in bash or glob in perl (ie: Fragment and move to several directories with mv a*.* /A-dir. Compress the files beginning for b with something like gzip b*.*)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Finding and sorting files in massive file directory
by CColin (Scribe) on Jan 20, 2013 at 21:30 UTC | |
by frozenwithjoy (Priest) on Jan 21, 2013 at 01:04 UTC | |
by choroba (Cardinal) on Jan 21, 2013 at 02:04 UTC | |
by MidLifeXis (Monsignor) on Jan 21, 2013 at 13:12 UTC |