![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jun 2002
Location: france
Posts: 996
|
rename multiple files under linux
how can i rename 1k files from xx.jpg in xx.gif from the command line?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Mar 2003
Location: South-East of the Border of Disorder
Posts: 5,093
|
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. .
__________________
![]() ALL Domains and Websites are GOING AWAY NOW! Ask me! Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here } .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: May 2005
Posts: 2,737
|
bash$ man find
Take a look at -exec or create a shell script |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Feb 2002
Posts: 720
|
for i in *; do echo mv $i "`echo $i | tr .jpg .gif `"; done | bash
|
![]() |
![]() ![]() ![]() ![]() ![]() |