[Please trim your quotes!]
But in any ahem Unix system, you can already do, ad
hoc:
$ ls | perl -n -e 'chomp; m/(.*)\.log$/
&& rename($_, "$1.old");'
I think using perl hardly counts as "any [] Unix system".
Or is that what your "ahem" is there for?
Also, that's going to misbehave, one way or another, on names
containing newlines, and possibly (I'm not entirely clear what "chomp"
does) names containing other characters.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse at
rodents-montreal.org
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B