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 01-01-2003, 05:51 PM   #1
Nat
Confirmed User
 
Join Date: Sep 2001
Posts: 553
Converting 'space' to 'underscore'?

I have a shitload of files with space's in there names, like "my hot page.html" and i am looking for some program that can convert all the spaces to underscore instead, so that the page would be renamed to "my_hot_page.html" instead...

If anyone know of such a program, please let me know!

Thanks, and Happy New Year to you all!
Nat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2003, 06:46 PM   #2
wwwcashmountain
Confirmed User
 
Join Date: Dec 2002
Posts: 194
This is a dead easy task under unix - are you running unix ?

Robert
__________________
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
wwwcashmountain is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2003, 06:49 PM   #3
Nat
Confirmed User
 
Join Date: Sep 2001
Posts: 553
Nope, but i have shell access, so thats no problem.. just let me know the commands and i will have it fixed
Nat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2003, 07:17 PM   #4
Nat
Confirmed User
 
Join Date: Sep 2001
Posts: 553
anyone?
Nat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2003, 07:21 PM   #5
Cohen
Confirmed User
 
Join Date: Nov 2002
Posts: 1,099
format c: (press "enter" 2 times REALLY fast)
__________________
dont look at this signature, Wildcard told me making money on GFY is baaaaaaaaaddd - so my sponsor links have been removed

Cohen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2003, 07:41 PM   #6
Nat
Confirmed User
 
Join Date: Sep 2001
Posts: 553
Quote:
Originally posted by Cohen
format c: (press "enter" 2 times REALLY fast)
Thanks a lot for that post, real helpful!
Nat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2003, 07:45 PM   #7
Cohen
Confirmed User
 
Join Date: Nov 2002
Posts: 1,099
Quote:
Originally posted by Nat


Thanks a lot for that post, real helpful!
Anytime man - thats what im there 4
__________________
dont look at this signature, Wildcard told me making money on GFY is baaaaaaaaaddd - so my sponsor links have been removed

Cohen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2003, 07:54 PM   #8
Nat
Confirmed User
 
Join Date: Sep 2001
Posts: 553
Quote:
Originally posted by Cohen


format c: (press "enter" 2 times REALLY fast)
Did you come up with that line all by yourself? wow, you must be proud!

Last edited by Nat; 01-01-2003 at 08:04 PM..
Nat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2003, 08:01 PM   #9
Cohen
Confirmed User
 
Join Date: Nov 2002
Posts: 1,099
Quote:
Originally posted by Nat


Did you come up with that line all by yourself? wow, you must be proud!
what ? I just replyed to his remark..
What the hell is your problem?
__________________
dont look at this signature, Wildcard told me making money on GFY is baaaaaaaaaddd - so my sponsor links have been removed

Cohen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2003, 08:18 PM   #10
extreme
Confirmed User
 
Industry Role:
Join Date: Oct 2002
Location: lalaland
Posts: 2,120
Code:
perl -e {'@a=`ls *.html`; foreach $o (@a) { chop($o); $n=$o; $n=~s/ /_/g; $s = "mv \"$o\" \"$n\"\n"; system($s); };'};
... yay for perl.
extreme is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2003, 08:24 PM   #11
Cohen
Confirmed User
 
Join Date: Nov 2002
Posts: 1,099
Quote:
Originally posted by extreme
Code:
perl -e {'@a=`ls *.html`; foreach $o (@a) { chop($o); $n=$o; $n=~s/ /_/g; $s = "mv \"$o\" \"$n\"\n"; system($s); };'};
... yay for perl.
I dont know SHIT about linux, but would just like to know, can you execute perl direct from the prompt?
__________________
dont look at this signature, Wildcard told me making money on GFY is baaaaaaaaaddd - so my sponsor links have been removed

Cohen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2003, 08:26 PM   #12
Nat
Confirmed User
 
Join Date: Sep 2001
Posts: 553
Quote:
Originally posted by extreme
Code:
perl -e {'@a=`ls *.html`; foreach $o (@a) { chop($o); $n=$o; $n=~s/ /_/g; $s = "mv \"$o\" \"$n\"\n"; system($s); };'};
... yay for perl.
Great! thanks a lot man!!
Nat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2003, 08:59 PM   #13
extreme
Confirmed User
 
Industry Role:
Join Date: Oct 2002
Location: lalaland
Posts: 2,120
Quote:
Originally posted by Cohen


I dont know SHIT about linux, but would just like to know, can you execute perl direct from the prompt?
yes, that very line was intended for execution directly from the prompt.


unixprompt$ perl -e {'PERL CODE GOES HERE'}
extreme is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2003, 10:11 PM   #14
magnatique
Confirmed User
 
magnatique's Avatar
 
Join Date: Jan 2001
Location: Montreal
Posts: 1,830
let me know if you got it... otherwize, I got one that`ll do that windows based...

icq: 421704
__________________

Stunner Media Programs: StandAhead | IndieBucks | BoyCrushCash | Phoenixxx | EmoProfits | BritishBucks | HunkMoney | LatinoBucks
Make $$$ with Gay! Lowest Minimum Payouts in the Business, Perfect Track Record, Amazing Sites
magnatique 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.