Hi Kevin
Thanks for this and for your quick response,
However I don't necessarily want to change the original file names located in the folder. I would like to read in the names to an array then remove the last 4 characters of each file within the array. once this is done add a new extension to each of the files within the array then use these new file names to link to the original.
So the end result should look...
User Profile
Collapse
-
Renaming files
Hi I'm relatively new to Perl.
I'm attempting to read in all the file names which are located in a directory to an array, modify each file name by removing the last 4 characters of each file then replacing them with a new 4 character extension. I then would like to set symbolic links using the new file names.
eg:- <filename>.im g to <filename>_trn. img
So far i have the following code...
No activity results to display
Show More
Leave a comment: