ė        d  d           
įg                           
        
i	  a      a     #a    -a    7a    Aa    Ka    Ya    fa 	   sa 
   a    a    a    §a    “a    Įa    Īa    Ūa    ča    õa    b    b    b    )b      6b ’’’’Cb ž’’’Mb ż’’’Vb ü’’’_b ū’’’jb      yb     b    b      ¬b    ¼b      Ńb     ćb    ób    c    c    $c    5c    Dc                   
l  Uc       ü       Å  ©X  @   ]  $      ac $      <¬ '      ūß        gc    Ą          
 pc      {  +       `  @   |c   x   c Ū     c Ū @   / a      Ė  a      c .    @  «    3} .   @  Lå +     ]  $     ķ $   „ ¤c $   ¦ V  @   Ą  ¬c '      wņ Ģ   @  ²c Ū                 P   "  ć       _      ¼c   P                     ćH  ¤     Åc ¤ @   \& $      Ķc      Q)  Æ     "  ā  @          
¢        £ Öc   š  ”  ¦     µĢ ¤    łd ¤ @             ”       åc 
  0   ¼£  ń      @  « @   `     Č  Ą   ÷ +      ”:  +      ]  '   @  óę  $   P  V!  $   X  Ó L   `         
§ ķc     Ė  a       ÷c æĻ     d a   Ą  F a   @  Żu	 a   Ą  d a   @  d æĻ  Ą  d .      3} .   @  Lå +     óę  '     ]  '   ¦ ¤c '   ® )d +   Ą  V  @      ¬c '   @  wņ Ģ            
©        ©        Ø /d      <G ¼     aO ¾ @             Ą Ą     Ā    q~ Ä @  w   Ā   <d Ā Ą   Ę      Č @  Jd Ė   č  Ķ Ą  u Ó    Qd Õ @  `d Ų   c  Ł Ą  "  l             
­        ®                 ¢ nd 
     d     d    „d    ¶d    Čd    Üd    ód    e     e    3e 	   Ce 
  H   Qe ¶     \e ø @   Q)  Æ    Ė  a   Ą   V     @         S  l	  Ą  ¦       óę  $      ]  $   (         
³       Æ     ¬             µ               Æ        · he      xe     e    ¢e    ²e    Će                  ¤     °     »                ŗ              ±     ¤     Y          ½              ¬     ¤             æ               ¬     ¤        Į               ¬     ¤     ¹        Ć                    ¤     L          Å              ¬     ¤        Ē       L       Ź     ¤        „        É       L       ń      ¤        Ģ              Ļ     Ń     ¤        Š Õe               Ņ åe               Ī       L       ¤        Ō               ±     ×                Ö        “ óe               "  ā  @          Ś f      V         @  Ż @          Ŗ f 
  Ą   Ė  a       c .       Ü    ¤c +    Lå +      3} .   Ą  ¬c '      wņ Ģ   @  Q)  ā    "  ā  @         
Ž  f   8   <G é          @     ė    w   ķ Ą    ļ    ō¼ ń @  c  ņ          
ą        į /f   @   Qe ę     Q)  ā @   Ė  a      c  +      ¦       óę  $   @         S  l	  Ą         
ć       ā     ¬             å               č     °     »        Ž        ē              ¬          č        ź               ¬     č        ģ                    č     L          ī               č     č        š        ä ?f      4  .      łd .   @   If .      Pf   (    ö     _f .   @   ęė .      å{ .   Ą   B  +      ¶¬ L             
ō        ó jf   0    ō     ,  .   @         
÷        ³        ć        ō        õ        ÷        ų        ß ~f       f    q         ā   ¬ *  Ŗf                 ¬ ½( č Ćf              ü   ½( č óC L   ßf                ¬ *  ½( č ųf               ½( č ”  ° uF
 » g    
 *g     Eg     ]g     ug    
       Æ   ¬ *  g            h    #!/usr/bin/perl -w

# ----------------------------------------------------------------------
# urifind - find URIs in a document and dump them to STDOUT.
# Copyright (C) 2003 darren chamberlain <darren@cpan.org>
# ----------------------------------------------------------------------

use strict;

our $VERSION = 20160806;

use File::Basename qw(basename);
use Getopt::Long qw(GetOptions);
use IO::File;
use URI::Find;
use URI::Find::Schemeless;

# What to do, and how
my $help = 0;
my $version = 0;
my $sort = 0;
my $reverse = 0;
my $unique = 0;
my $prefix = 0;
my $noprefix = 0;
my @pats = ();
my @schemes = ();
my $dump = 0;
my $schemeless = 0;

Getopt::Long::Configure(qw{no_ignore_case bundling});
GetOptions(
    's!'   => \$sort,
    'u!'   => \$unique,
    'p!'   => \$prefix,
    'n!'   => \$noprefix,
    'r!'   => \$reverse,
    'h!'   => \$help,
    'v!'   => \$version,
    'd!'   => sub { $dump = 1 },
    'D!'   => sub { $dump = 2 },
    'P=s@' => \@pats,
    'S=s@' => \@schemes,
    'schemeless!' => \$schemeless,
);

if ($help || $version) {
    my $prog = basename($0);

    if ($help) {
        print <<HELP;
$prog - find URIs in a document and dump them to STDOUT.

    $prog [OPTIONS] file1 [file2[, file3[, ...]]]

Options:

    -s          Sort results.
    -r          Reverse sort results (implies -s).
    -u          Return unique results only.
    -n          Don't include filename in output.
    -p          Include filename in output (0 by default, but 1 if
                multiple files are included on the command line).
    -P \$re      Print only lines matching regex '\$re' 
                (may be specified multiple times).
    -S \$scheme  Only this scheme (may be specified multiple times).
    -h          This help screen.
    -v          Display version and exit.
    -d          Dump compiled regexes and continue.
    -D          Dump compiled regexes and exit.

HELP
    }
    else {
        printf "$prog v.%.02f\n", $VERSION;
    }

    exit(0);
}

my (@uris, $count);
unshift @ARGV, \*STDIN unless @ARGV;

if (($prefix + $noprefix) > 1) {
    my $prog = basename $0;
    die "Can't specify -p and -n at the same time; try $prog -h\n";
}


# Print filename with matches?  -p / -n
# If there is more than one file, then show filenames by
# default, unless e