Where art thou 'rename'

Romain Kang romain at kzsu.stanford.edu
Tue Aug 5 18:41:22 UTC 2008


Here's something posted to USENET ca. 1991.  I've been carrying around
my own copy ever since:

#! /usr/local/bin/perl
$op = shift;
for (@ARGV) {
    $was = $_;
    eval $op;
    die $@ if $@;
    rename($was,$_) unless $was eq $_;
}




More information about the ubuntu-users mailing list