#!/usr/bin/perl -w # $Id$ # Yoni, 2.6.00 if ($#ARGV<2) { print STDERR<1) { print STDERR "Multiple files ($newnames{$_}) would be renamed to $_\n"; $ok=0; } } exit 1 if(!$ok); foreach (keys %moveto) { next if ($_ eq$moveto{$_}); print "Renaming $_ to $moveto{$_}\n"; rename($_,$moveto{$_}); }