Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 8457  / 2 Years ago, sun, june 12, 2022, 6:40:48

What is the most efficient way to get the intersection between two files , there is :



sort file1 file2 | uniq -d

More From » grep

 Answers
6

Use grep command line as following:



grep -Fx -f file1 file2

[#24995] Monday, June 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pantkie

Total Points: 209
Total Questions: 112
Total Answers: 138

Location: Venezuela
Member since Sat, Apr 24, 2021
3 Years ago
;