Solved remove duplicate lines in txt file based on first field

November 25, 2015 at 20:37:32
Specs: Windows 7
Hi,
I need a vbscript to run to delete duplicate items within a text file based on the first field and still output the other fields.

Example Data
aaa,bbbbb,ccccc
bbb,aaaaa,ccccc
aaa,bbbbb,ccccc
aaa,bbbbb,ccccc

End Result
bbb,aaaaa,ccccc


See More: remove duplicate lines in txt file based on first field

Report •


#1
November 26, 2015 at 19:03:36
✔ Best Answer
Maybe (not vbscript, but...)
findstr /v "^aaa," andy.txt

Report •
Related Solutions


Ask Question