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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-17-2004, 12:49 AM   #1
jovigirl
Confirmed User
 
jovigirl's Avatar
 
Join Date: Apr 2003
Location: On the edge
Posts: 1,796
I need a script to batch rename files on a server

Sth like rename it! but server side done.
Anyone knows of any?
Thanks guys
__________________
ICQ :333-548-380
jovigirl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2004, 12:50 AM   #2
tyler86ed
Confirmed User
 
Join Date: Jan 2004
Location: California
Posts: 543
Maybe a few more details...did you use the *
__________________

Check out all our new fresh FETISH sites, Tons of hosted galleries and fresh new content.
tyler86ed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2004, 12:57 AM   #3
jovigirl
Confirmed User
 
jovigirl's Avatar
 
Join Date: Apr 2003
Location: On the edge
Posts: 1,796
I need sth like rename all files in this directory to
(some_prefix_I_choose)001.ext
(some_prefix_I_choose)002.ext
(some_prefix_I_choose)003.ext
(some_prefix_I_choose)004.ext
etc
__________________
ICQ :333-548-380
jovigirl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2004, 01:03 AM   #4
tyler86ed
Confirmed User
 
Join Date: Jan 2004
Location: California
Posts: 543
rn *.ext

will change all files with that extension in the dir.
__________________

Check out all our new fresh FETISH sites, Tons of hosted galleries and fresh new content.
tyler86ed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2004, 01:13 AM   #5
MaDalton
I am Amazing Content!
 
MaDalton's Avatar
 
Industry Role:
Join Date: Feb 2004
Posts: 39,829
Total Commander does batch rename via ftp
MaDalton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2004, 01:19 AM   #6
toddler
Confirmed User
 
Join Date: Jun 2002
Location: austin, tx
Posts: 1,911
Quote:
Originally posted by tyler86ed
rn *.ext

will change all files with that extension in the dir.
huh? on what OS is that?
toddler is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2004, 01:41 AM   #7
skillfull
Confirmed User
 
skillfull's Avatar
 
Industry Role:
Join Date: Apr 2003
Location: Quebec Calisse
Posts: 4,716
Quote:
Originally posted by toddler
huh? on what OS is that?
ever heard of Unix ?
__________________
mind at underdark dot cc
SEO Analyst
Thunder-Ball.net - Member
skillfull is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2004, 01:43 AM   #8
sixxxth_sense
So Fucking Banned
 
Join Date: Nov 2003
Location: T.O.
Posts: 2,430
Quote:
Originally posted by skillfull
ever heard of Unix ?
LOL
sixxxth_sense is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2004, 02:03 AM   #9
jovigirl
Confirmed User
 
jovigirl's Avatar
 
Join Date: Apr 2003
Location: On the edge
Posts: 1,796
Quote:
Originally posted by MaDalton
Total Commander does batch rename via ftp
This is cool

SSH is far too complicated to batch rename a lot of images in different directories.
__________________
ICQ :333-548-380
jovigirl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2004, 02:52 AM   #10
Ash@phpFX
Confirmed User
 
Join Date: Nov 2003
Posts: 4,292
easy done with php
Ash@phpFX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2004, 04:48 AM   #11
spentrent
Confirmed User
 
Join Date: Feb 2004
Location: LA
Posts: 876
Quote:
Originally posted by asher
easy done with php
...but only if you're the type who likes using sledgehammers on thumbtacks.

If you're on the bash command-line of your linux/bsd/unix host (which you probably are), do this:

Code:
$ cd /the/directory/where/my/files/are

$ for i in *     [hit enter]
do               [hit enter]
mv $i prefix$i   [hit enter]
done             [hit enter]
spentrent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.