20070203

voice rename


1 #!/usr/bin/perl
2
3
foreach(@ARGV){
4 @t = localtime ( ( ( stat ( $_ ) ) [9] ) );
5 @f = split(/[(.]/,$_);
6 $s = sprintf("@f[0]_%04d%02d%02d_%02d%02d%02d.wav",$t[5]+1900,$t[4]+1,$t[3],$t[2],$t[1],$t[0]);
7 printf("%s\t%s\n",$_,$s);
8 rename($_,$s) || die "Cannot rename $_ to $s: $!";
9 }



  • Platform : perl
  • Script : Rename voice files
  • desc :

    This is a script to batch rename the voice calls recorded on my phone to __


No comments: