home *** CD-ROM | disk | FTP | other *** search
Perl Script | 1996-04-04 | 466 b | 21 lines | [TEXT/ttxt] |
- #! /usr/unsupported/bin/perl
- foreach $file (@ARGV) {
- open(IMF,"<$file") || warn "Cannot open $file.\n";
- while (<IMF>) {
- if (/imf\s*\"([^\"]*)\"/) {
- $imf = $1;
- if ($where{$imf} && $where{$imf} ne $file) {
- warn "Family $imf present in files $where{$imf} and $file.\n";
- } else {
- $where{$imf} = $file;
- }
- }
- }
- }
-
- print "ImageFamilyName FileName\n";
- foreach $imf (sort keys(%where)) {
- print "$imf $where{$imf}\n";
- }
- print ". .\n";
-