See rename, split, join, length, and substr for some ideas. You may also want to see -e to check if a file or directory exists. Before using rename, you will likely want to do a test run with just printing.
--MidLifeXis
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: I have a folder which is having 1200 files,all the file names are have maximum of 8 character length.I need to remove last character from each of the filnames and prefix it with character "A"
by perladdict (Chaplain) on Feb 20, 2013 at 20:38 UTC | |
In Section
Seekers of Perl Wisdom