Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!

cracked.io | Best Forum Around | Free Premium Accounts




 368

need help with dupes

by Aquilla - 30 March, 2022 - 07:54 PM
This post is by a banned member (Aquilla) - Unhide
Aquilla  
Heaven
1.983
Posts
996
Threads
2 Years of service
#1
Like i dont know how to explain but :
I have combo
10k lines
i have 3k dupes
so i want to remove dupes AND i also want to remove accounts that were dupe yk
so i will remove 6k accs
and have my 4k from that combo
What should i do 
Ill rep person who help ty
 
 
This post is by a banned member (CDSG) - Unhide
CDSG  
Heaven
5.587
Posts
991
Threads
2 Years of service
#2
Use a combo editor
[Image: OTrKwjW.gif]
[ 30/06/2024 ]
@vyactor
[Image: 3KRc17x.gif]
[Image: ScwiUrA.png]
 [ 03/06/2024 ]
This post is by a banned member (Aquilla) - Unhide
Aquilla  
Heaven
1.983
Posts
996
Threads
2 Years of service
#3
(30 March, 2022 - 07:55 PM)CDSG Wrote: Show More
Use a combo editor
ye but which one
 
 
This post is by a banned member (shady) - Unhide
shady  
Heaven
3.467
Posts
1.492
Threads
4 Years of service
#4
use emeditor.
 
[Image: Final_1.gif]
Cheap - HQ - Paypal Enabled - 6 Months Warranty | https://bit.ly/308uGoQ
This post is by a banned member (UberFuck) - Unhide
UberFuck  
Godlike
1.428
Posts
368
Threads
4 Years of service
#5
(30 March, 2022 - 07:54 PM)Smartest Wrote: Show More
Like i dont know how to explain but :
I have combo
10k lines
i have 3k dupes
so i want to remove dupes AND i also want to remove accounts that were dupe yk
so i will remove 6k accs
and have my 4k from that combo
What should i do 
Ill rep person who help ty

if you want to use python...
 
Code:
import collections
 
def remove_duplicates(inputPath:str, outputPath:str):
    values = collections.Counter(open(inputPath,'r').readlines())
    with open(outputPath, 'w') as f:
        f.writelines([k for k,v in values.items() if v == 1])
       
infile = 'yourFile.txt'
outfile = 'dedupedFile.txt'
remove_duplicates(infile, outfile)

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)