Problem: I have a bunch of files that are missing an extension and need to find a method to rename them.
I figure the following so far, and please if a better suggestion is available feel free to tell me.
- Tabbed text file that holds two columns: ID Name
- Directory folder that holds all the physical files. The files are missing a valid name and extension. Current name is ID only.
I need to read files in directory folder and match the file name
against the ID column on the tabbed text file, when a match is
made, then rename the file using the name in the name column
in the text file.
I do not know how to do this with a program or script. Using perl I believe would be a quick and efficient way, but I do need to relay on EE for help.
Please any help would be very much appreciatted.
P.S.
Do I need to upload any files?
Thanks!
Start Free Trial