Jump to content
UBot Underground

compare lists and delete duplicate


Recommended Posts

hey guys,

 

here is the scenario.

 

i have list 1, which is a list that is already processed.

 

then i have list 2, a totally separate list that needs to be compared against.

 

IF any lines in list 2 are also in list 1, then delete it from list 2.

 

the remainder of list 2 will be then processed with the bot.

 

is there a function in ubot that does this?

 

thank you!!!

Link to post
Share on other sites

working like a charm, thanks!

 

tip, just make sure to put the prescreen list in list 1, then the list to check against in list 2 when using SUBTRACT

 

even if you mix it up though, it's easy to figure out with a save to file and stop script

  • Like 1
Link to post
Share on other sites
  • 1 year later...

Has something changed on this command? I have been trying to get it working for 2 hrs on two simple lists and it just adds the two list together. I followed it just as the tutorial in the help menu. What am I doing wrong?

 

Below is my simple robot to test the command.

 

Thanks in advance

 

add item to list(%test1, $list from text("apple, pear, banana", ","), "Delete", "Global")
add item to list(%test2, $list from text("banana, car", ","), "Delete", "Global")
save to file("C:\\Documents and Settings\\Chris\\My Documents\\ubot\\Projects\\Contests\\win-free-stuff-ca\\test1.txt", $common list items(%test2, %test1))

 

Chris

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...