Loading ...
Sorry, an error occurred while loading the content.
 

List items in two documents - delete items from one in the other

Expand Messages
  • hugo_paulissen
    A user on the basic list came up with this one... He has two documents with email-lists, and wants to get rid of all addresses that appear in his bad list.
    Message 1 of 1 , Jun 25, 2003
      A user on the basic list came up with this one...

      He has two documents with email-lists, and wants to get rid of all
      addresses that appear in his "bad" list.

      Just in case the (imaginative, as you can imagine) email-addresses
      are screwed up, I replace @ with #)...

      Goodlist.txt
      ------------
      123456#123456.120
      123456#123456.121
      123456#123456.130
      123456#123456.131
      123456#123456.140
      123456#123456.141
      123456#123456.150
      123456#123456.151
      123456#123456.160
      123456#123456.161
      123456#123456.170
      123456#123456.171
      123456#123456.180
      123456#123456.181
      123456#123456.190
      123456#123456.191
      123456#123456.200
      123456#123456.201
      123456#123456.210
      123456#123456.211
      123456#123456.220

      Badlist.txt
      -----------
      123456#123456.120
      123456#123456.200
      123456#123456.211

      Clip
      ----
      ^!Open Goodlist.txt
      ^!Open Badlist.txt
      ^!Jump 1
      ^!Set %StopAT%=1
      :REMOVE
      ^!If ^%StopAT%>^$GetLineCount$ END
      ^!Select EOL
      ^!Set %baditem%=^$getSelection$
      ^!Open Goodlist.txt
      ^!Replace "^%baditem%" >> "" AIWS
      ^!Open Badlist.txt
      ^!Jump +1
      ^!INC %StopAT%
      ^!GoTo REMOVE


      Regards,

      Hugo
    Your message has been successfully submitted and would be delivered to recipients shortly.