Compare two Files and Print Lines that Match
The proper way to compare two files and print lines that match: awk ‘NR==FNR{arr[$0];next} $0 in arr’ file1.txt file2.txt Here is a shell script you can run: #!/bin/bash # Filename: showdupes.sh # source: # this file takes two text…