![]() |
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! |
This is a dead easy task under unix - are you running unix ?
Robert |
Nope, but i have shell access, so thats no problem.. just let me know the commands and i will have it fixed :)
|
anyone? :)
|
format c: (press "enter" 2 times REALLY fast)
|
Quote:
|
Quote:
|
Quote:
|
Quote:
What the hell is your problem? |
Code:
perl -e {'@a=`ls *.html`; foreach $o (@a) { chop($o); $n=$o; $n=~s/ /_/g; $s = "mv \"$o\" \"$n\"\n"; system($s); };'}; |
Quote:
|
Quote:
|
Quote:
unixprompt$ perl -e {'PERL CODE GOES HERE'} |
let me know if you got it... otherwize, I got one that`ll do that windows based...
icq: 421704 |
All times are GMT -7. The time now is 02:04 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123