Compare two files and show the differences only using shell command


awk 'BEGIN { while ( getline < "file1.txt" ) { arr[$0]++ } } { if (!( $0 in arr ) ) { print } }' file2.txt