3 $lookFor = shift @ARGV;
4 die "usage: directory extension_to_look_within tag_to_look_for_backwards\n" if (!defined($lookFor));
10 opendir(DIR
, $dir) || die "opendir failed";
11 local(@dir) = readdir(DIR
);
18 local($path) = $dir . '/' . $_;
26 push(@files, $path) if (/\.$lookIn$/)
32 foreach $file (sort @files)
34 open(STRINGS
, 'strings ' . $file . ' |');
38 print $file . "\t" . $_ . "\n" if (/$lookFor$/);