view old/remname.pl @ 9:477c36226481 tip

added old scripts for historical interest.
author Robert McIntyre <rlm@mit.edu>
date Fri, 21 Oct 2011 07:46:18 -0700
parents
children
line wrap: on
line source


3 $dir='./';
4 opendir DIR, $dir;
5 @files=grep !/^\./, readdir(DIR);
6 $" = "\n";
7 #print "@files";
8 $name = "AA";
10 for (@files){
11 if ($_=~m/\.spc$/) {
12 #print "$_\n";
13 rename "C:/spc700/$_", "C:/spc700/$name.spc";
14 $name++;
19 }
23 }