scan2seed/extract_urls.pl

15 lines
244 B
Perl

#!/usr/bin/env perl
use strict;
use warnings;
use Regexp::Common 'URI';
use IO::All;
foreach my $filename (@ARGV) {
my $content = io->file($filename)->slurp;
while ( $content =~ m/($RE{URI}{HTTP})/g ) {
print $1, $/;
}
}