Time Heals All Wounds.. And Then Kills the Patient
<Previous Next>
Evening
Evening
Mon Nov 3 14:49:19 2003
Latest Concoction
Topics:

Before I start, take a look at this interesting review of GIMP versus Photoshop. As GIMP is free, and Photoshop is $650, if you ever need to edit an image, you should have GIMP. It's available for Windows and MacOS too. Check this out too.

Ok, here's my latest concoction.. Call it transrename.


  1. !/usr/bin/perl -w
if(! @ARGV > 2)
       {die "Usage: transrename pattern files...\n";}
my @argvc = @ARGV; # Some platforms can't shift @ARGV my $code = shift(@argvc); print "\n"; foreach (@argvc)
       {
       my $old = $_;
       eval $code;
       print " $old => $_\n";
       if($old ne $_)
               {
               system("/bin/mv", '-i', $old,  $_);
               }
       }

It's just a short script to rename things. I wrote it for something at work, but it's also useful for home purposes -- when handling people who use other standards for naming music files than I do, I typically invoke it as such: transrename 's/ - /-/g;tr/A-Z/a-z/;s/ /_/;'

In other technology uses, the possibilities in this are astounding.

I'll be putting up some new pictures in my gallery soon.

Finally,

PRIVATE SECTION NOT SHOWN

Back to work!