Created
February 26, 2012 09:27
-
-
Save VienosNotes/1915639 to your computer and use it in GitHub Desktop.
なにかの画像を収集するスクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use v6; | |
| my @type = (1..3).list; | |
| my @rare = (0..5).list; | |
| my @num = (1..29).list; | |
| my @plus = (1..3).list; | |
| my $cmd; | |
| for @type X @rare X @num X @plus -> $t, $r, $n, $p { | |
| $cmd = 'wget http://example.com/directory/' ~ $t ~ $r ~ $n.fmt("%03d") ~ $p.fmt("%02d") ~ ".jpg"; | |
| eval "qx \'$cmd\'"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment