perl -MFile::Path -e 'mkpath([map { "dir$_" } (1 .. 20)])'
Or without:
perl -e 'system("mkdir dir$_") for (1 .. 20)'
-sam
In reply to Re: Creating Multiple Empty Directories with Perl
by samtregar
in thread Creating Multiple Empty Directories with Perl
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |