Use find. Then you can do something else with the directories using xargs and get the benefit of multiple threads and parallel processing. Just have perlscript.pl process @ARGV.
find /root/directory -type d | xargs perlscript.pl
In reply to Re: Get folders in a directory with 20k directories?
by onelesd
in thread Get folders in a directory with 20k directories?
by perlpreben
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |