![]() |
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 ?
|
Search and replace.
I bet you can find a fancy program online for that |
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 |
Quote:
i have searched for it, but it seems to me that most easiest way is to go custom. |
prob some awk/sed/regex ninja type stuff
|
Quote:
look at my reply damm it. dreamweaverMX can do it and you can download a 30trial if you dont already have it |
rm -Rf *
|
Quote:
|
Quote:
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. |
Quote:
|
get editplus, open all files and run an regex search and replace
|
Quote:
|
Quote:
----- 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. |
perl is your friend.
|
if the java script is different you will need some kind of script or proggie supporting reg expressions
|
i have a php program you could use to do this, ill see if i can find it
|
del *.*
______ |
Quote:
:1orglaugh:1orglaugh |
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. |
Quote:
Lololololol.... Are you for real?? |
All times are GMT -7. The time now is 05:34 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123