![]() |
rename multiple files under linux
how can i rename 1k files from xx.jpg in xx.gif from the command line?
|
I have a custom piece of code that's run from the command line. It's a pain in the ass.
I have to move it to the folder I want to make the changes in and it won't do sub folders. I have to re-code it with any different variable that I want to change and then upload it, then run it from the box. If you want it I'll try to find it. Otherwise I have one that runs locally that will search/replace anything in any string on 1,000 files in 2 seconds. LMK and I will try to help you. . |
bash$ man find
Take a look at -exec or create a shell script |
for i in *; do echo mv $i "`echo $i | tr .jpg .gif `"; done | bash
|
All times are GMT -7. The time now is 01:01 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123