![]() |
![]() |
![]() |
||||
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: May 2003
Posts: 2,734
|
How to mass delete javascript file from hundreds of pages?
I have to delete javascript code (around 8 lines of code) from hundreds of html pages. Any ideas how to do that quickly without hand ?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2006
Posts: 2,594
|
Search and replace.
I bet you can find a fancy program online for that |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: May 2007
Location: So fucking gone
Posts: 1,839
|
if you have dreamweaverMX, you can do a "find and replace" on a whole folder, local site or remote site.
so if its the same code, it should take you only a few mins to start |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: May 2003
Posts: 2,734
|
Quote:
i have searched for it, but it seems to me that most easiest way is to go custom. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,372
|
prob some awk/sed/regex ninja type stuff
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: May 2007
Location: So fucking gone
Posts: 1,839
|
Quote:
look at my reply damm it. dreamweaverMX can do it and you can download a 30trial if you dont already have it |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Marketing & Strategy
Industry Role:
Join Date: Jun 2001
Location: Former nomad
Posts: 14,293
|
rm -Rf *
__________________
Whitehat is for chumps If you don't do it, somebody else will - true story!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Mostly retired
Industry Role:
Join Date: Apr 2006
Location: UK
Posts: 3,231
|
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
|
Yea, about as far as I wanted to play was cd'ing into a directory and running:
ls -f | awk '/.html/ {print "cat " $1}'|sh I'm sure there's a way to pipe that into a string, reg-out what you don't want and pipe it back into the file. Then again, I remember there being some nifty perl command line thing for it as well... thus I'm no help, but here's a bump for you.
__________________
Your post count means nothing. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Retired
Industry Role:
Join Date: Dec 2002
Posts: 21,264
|
__________________
2 lifeguards for Jessica |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Jun 2006
Posts: 530
|
get editplus, open all files and run an regex search and replace
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Marketing & Strategy
Industry Role:
Join Date: Jun 2001
Location: Former nomad
Posts: 14,293
|
__________________
Whitehat is for chumps If you don't do it, somebody else will - true story!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
|
pressing "ctrl -z" doesn't work?
----- Here's that perl thing: http://kb.iu.edu/data/afrk.html Quote:
Otherwise, get a decent IDE like all other suggestions and follow their advice.
__________________
Your post count means nothing. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
there's no $$$ in porn
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
|
perl is your friend.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Industry Role:
Join Date: Oct 2005
Posts: 3,758
|
if the java script is different you will need some kind of script or proggie supporting reg expressions
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
i have a php program you could use to do this, ill see if i can find it
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Confirmed User
Industry Role:
Join Date: Nov 2005
Location: 20 00'24.00" N, 75 09'00.00 W
Posts: 6,882
|
del *.*
______ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Do Fun Shit.
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
|
__________________
![]() “I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Too lazy to set a custom title
Join Date: Jun 2006
Posts: 19,227
|
put all your files if the same directory then code a software that list every files of the directory, then code that for each file the source code is stored in a memory stream, find and delete what is not good, then write over the old file with the memory stream.
In delphi i can code that in 1 hour. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
ICQ: 197-556-237
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
|
Lololololol.... Are you for real??
__________________
I'm just a newbie. |
![]() |
![]() ![]() ![]() ![]() ![]() |