File a.txt has about 100k words, each words is in new line
july.cpp
windows.exe
ttm.rar
document.zip
File b.txt has 150k words, one word by line - some words are from file a.txt, but some words are new:
july.cpp
NOVEMBER.txt
windows.exe
ttm.rar
document.zip
diary.txt
How can I merge this files into one, delete all duplicate lines, and keep lines that are new (lines that exist in a.txt but don't exist in b.txt, and vice versa)?
sort -u a.txt b.txt– Dec 02 '19 at 20:55