Skip to contentSkip to conversation

How to remove the duplicate record in text file using DOS?

DISCUSSION Vinoth Rajagopal 2 participants 2 messages Dec 2, 2008

lore
Share & tools
lore
#0 lore raw

Friends,

Fine and hope the same.
Actually I need to remove the duplicate records from my input file (text file). Will it be possible to do in DOS. If so please help me to resolve it off...,

[B]Input file :[/B]
vinoth
rajesh
employee
anand
rajesh
employeeGanesh

[B]Output file should be in below format:[/B]
vinoth
rajesh
employee
anand
Ganesh

Thanks In Advance.

Thanks,
Vinoth Rajagopal

Signature · 2 lines
View this message in context: http://www.nabble.com/How-to-remove-the-duplicate-record-in-text-file-using-DOS--tp20789431p20789431.html
Sent from the linux-msdos mailing list archive at Nabble.com.
#1 lore raw
Quoted 2 lines · On Tue, 2 Dec 2008 02:21:42 -0800 (PST) Vinoth Rajagopal wrote:

Actually I need to remove the duplicate records from my input file (text file). Will it be possible to do in DOS.

Dosemu comes with bwbasic. A short bwbasic program should do exactly what you want it to do. Just set up a for-next loop until you get to the end of the file, and within that loop read each line of the file and write the lines that you want to a different text file.

Signature · 2 lines
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com