• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Is there a program...

LeetViet

Platinum Member
Is there a program that searches a plain txt file for duplicate entries?

Say like if I type 123 on one line and at the bottom type 123 it'll find it and delete it.
 
Originally posted by: amdfanboy
Sounds like a job for scripting and a map.

😕

I have some txt files that I'd like to import to my MySQL database but Navicat messes up when there are duplicate entries and sometimes not all the entries are added (although it continues on).
 
On linux, I'd use sort and uniq to tell me which lines were duplicated, and then use sed or something to trim out those lines. Post again if this is helpful but you need more explanation.
 
Trying to do this in Windows.

I have a .txt file that contains some duplicate entries

i.e.

1 Test
2 Test2
3 Test3
1 Test

I'm looking for a program that will find and delete the duplicates without me having to manually search through every one of the unique entries.
 
Each one is on a different line? I would do it, but I'm kind of crammed for time. I would just use a map or something to keep track of what lines I have read . I would read each line in, if it was already there , I wouldn't write it to the output file.
 
Yes, they're on separate lines.

Is there anything for Windows? I'd like to learn to do this myself so I can be self reliant in the future.
 
Yup. If you don't want to install the whole thing, I can send you sort and uniq and the DLL, but for various reasons, you should use their installer 😉.
 
Originally posted by: CTho9305
Yup. If you don't want to install the whole thing, I can send you sort and uniq and the DLL, but for various reasons, you should use their installer 😉.

I'd actually prefer that, that's what I did for patch.exe and diff.exe 😀
 
Back
Top