B
B
Bogdan Gadzhega2015-12-11 17:51:58
Windows
Bogdan Gadzhega, 2015-12-11 17:51:58

Comparing two text files and keeping duplicate lines?

Hello.
Need a program to compare two text files and save duplicate lines from them to a third file. AXIS: WINDOWS 7
For example.
File_1
01
02
03
File_2
01
04
05
File_3 (result of software operation)
01

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2015-12-11
@kalne

duplicate finder

E
Eugene, 2015-12-11
@yellowmew

Powershell one-liner

Get-Content file1 + Get-Content file2 | Group | Where {$_.count -gt 1} | Select -ExpandProperty Name | Out-File file3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question