> What is the simplest way to do such renaming ?
> I have many file with the same preceding string in their name.
> I want to remove that.
by using perl like this:
while(<*.for>) {
$oldname = $_;
s/\.for$/\.f/;
rename $oldname, $_;
}
this takes all filenames ending with .for and renames them to .f
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]