<http://forum.pspad.com/read.php?f=2&i=10384&t=10384> ----------------------------------------------------------------
I need a PsPad script or something that can strip lines containing keywords from a raw 80 000 line master Windows hosts file. Notetab does it with a clip: ^!Replace "^.*badsite.*$" >> "" WASR ^!Replace "^.*crapsite.*$" >> "" WASR, etc. Here's why Notetab is still needed: I compile a raw master hosts file from all the available hosts file block lists and then use a free word frequency indexer (TextStat) to extract all keywords occurring more than 30 times. Selected keywords go into my filter lists (Adblock for Firefox, eDexter for IE). I then use same keywords in a NoteTab clip which deletes all lines containing the keywords from the hosts file. I end up with 2 filter lists containing about 400 entries each and a bloatless 40 000-line hosts file containing mostly single entries. The filter\hosts file combination blocks all known advertising servers and all known harmful sites on earth and works like a bomb, provided you disable the Windows DNS lookup service. Would love to do it with PsPad but can't -- and I hate using alternative editors in order to get something done. How can I do this with PsPad? Can anybody help? Btw the WASR in the string enforces silent mode: No user input is required. However, Notetab chokes to death on anything much longer than 6 000 lines, which forces me to split and rejoin the master file. I'm sure PsPad can do it quicker. [%sig%] -- PSPad freeware editor http://www.pspad.com
