This question already has an answer here:
- How does awk '!a[$0]++' work? 2 answers
Yesterday I was googling how to merge two files and came across an
I need a simple merge, so
sort -u is not the way to go, but the code below works.
Could some one please explain what this
awk code does?
awk '!a[$0]++' file_1 file_2