Skip to content

Instantly share code, notes, and snippets.

@danmilleruk
Created February 12, 2012 19:06
Show Gist options
  • Save danmilleruk/1810300 to your computer and use it in GitHub Desktop.
Save danmilleruk/1810300 to your computer and use it in GitHub Desktop.
Obtains image files from multiple subreddits using reddit-get.
#!/usr/bin/perl
open(SUBREDDIT, "<subreddits.txt");
my(@data) = <SUBREDDIT>;
@data = sort(@data);
my($line);
foreach $line (@data)
{
system("/usr/bin/perl /data/scripts/reddit-get/get.pl $line ");
}
close(SUBREDDIT);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment