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*.*)
In reply to Re: Finding and sorting files in massive file directory
by pvaldes
in thread Finding and sorting files in massive file directory
by CColin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |