You're replying to a comment by mug896.

mug896 Permalink
December 30, 2013, 03:35

awk '!($0 in a) {c++;a[$0]} END {exit(c==NR/2?0:1)}' file1 file2

is not working..
test with this file contents

$ cat d3.txt
……….[error]………
…………id=AAA……
…………id=CCC……
……….[error]………
…………id=AAS……
……….[error]………
…………id=ABC……

$ awk '!($0 in a) {c++;a[$0]} END {print(c==NR/2?0:1)}' d3.txt d3.txt
1 <---- return 1 not 0 !!!

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "quake3_100": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.