This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk 'seen[$0]++ { print "duplicate lines: " $0 }' file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/awk | |
# Here's an awk scrip that atttemps to set difference of two files based on their first column | |
# gawk -f Diff.awk file1.txt file2.txt | |
BEGIN{ | |
OFS=FS="\t" | |
file = ARGV[1] | |
while (getline < file) | |
Contained[$1] = $1 | |
delete ARGV[1] |