Timeline for Rename all files in directory while preserving any file extension
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 20, 2015 at 17:50 | comment | added | meuh | I provided, in a separate answer, a php script to do what you want. | |
| Oct 20, 2015 at 17:18 | comment | added | technerdius | My only issue with that solution is that it also renames the file extensions, which I am trying to preserve. Basically, I am trying to add some alphanumeric sequence at the beginning of the file name, add -mg4sm to the end of the file name but before the file extension, and remove the original file name. Or, replace the original file name with an alphanumeric sequence in front of the file name and mg4sm in the end of the file name while preserving the extension. Can you help me do this? | |
| Oct 20, 2015 at 17:01 | comment | added | meuh | You could look at this php solution. | |
| Oct 20, 2015 at 16:38 | comment | added | technerdius | I will keep that in mind for my other VM for CentOS. But, this one is CloudLinux configured by a web hosting company and restricts installations heavily. I cannot install it your way or cpan File::Rename per permissions. | |
| Oct 20, 2015 at 11:02 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 |
missing --
|
| Oct 20, 2015 at 10:27 | history | edited | meuh | CC BY-SA 3.0 |
example
|
| Oct 20, 2015 at 10:22 | history | edited | meuh | CC BY-SA 3.0 |
perl
|
| Oct 20, 2015 at 9:55 | history | answered | meuh | CC BY-SA 3.0 |