in reply to
renaming files...
I'm not sure that you can use this but instead of writing your own script you could use rename like follows.
rename 's/-AM$//' *
[download]
In the directory that you need to rename the files. I believe rename is part of perl. HTH
Comment on
RE: renaming files...
Download
Code
In Section
Seekers of Perl Wisdom