delete some lines contains same text but different num
Hi!
I am a green hand to scripting.
I have written a script that filter some characters in a text file. The source characters are:
../../../External_delivery/TBSW/BasicSystem/api/bs_lib.h:869: warning: `struct sockaddr' declared inside parameter list
../../../External_delivery/TBSW/BasicSystem/api/bs_lib.h:869: warning: its scope is only this definition or declaration
After run script, the expected result is:
`struct sockaddr' declared inside parameter list
its scope is only this definition or declaration
UltraEdit.activeDocument.top();
UltraEdit.activeDocument.findReplace.mode=0;
UltraEdit.activeDocument.findReplace.matchCase=false;
UltraEdit.activeDocument.findReplace.matchWord=false;
UltraEdit.activeDocument.findReplace.regExp=true;
UltraEdit.activeDocument.findReplace.searchDown=true;
UltraEdit.activeDocument.findReplace.searchInColumn=false;
UltraEdit.activeDocument.findReplace.preserveCase=false;
UltraEdit.activeDocument.findReplace.replaceAll = true;
UltraEdit.activeDocument.findReplace.replaceInAllOpen=false;
UltraEdit.activeDocument.findReplace.replace("STRING", ""); //How can I write this STRING?
Thankful for all help I can get!
Payton
I am a green hand to scripting.
I have written a script that filter some characters in a text file. The source characters are:
../../../External_delivery/TBSW/BasicSystem/api/bs_lib.h:869: warning: `struct sockaddr' declared inside parameter list
../../../External_delivery/TBSW/BasicSystem/api/bs_lib.h:869: warning: its scope is only this definition or declaration
After run script, the expected result is:
`struct sockaddr' declared inside parameter list
its scope is only this definition or declaration
UltraEdit.activeDocument.top();
UltraEdit.activeDocument.findReplace.mode=0;
UltraEdit.activeDocument.findReplace.matchCase=false;
UltraEdit.activeDocument.findReplace.matchWord=false;
UltraEdit.activeDocument.findReplace.regExp=true;
UltraEdit.activeDocument.findReplace.searchDown=true;
UltraEdit.activeDocument.findReplace.searchInColumn=false;
UltraEdit.activeDocument.findReplace.preserveCase=false;
UltraEdit.activeDocument.findReplace.replaceAll = true;
UltraEdit.activeDocument.findReplace.replaceInAllOpen=false;
UltraEdit.activeDocument.findReplace.replace("STRING", ""); //How can I write this STRING?
Thankful for all help I can get!
Payton