Coop197823
Programmer
I found this bit of awk code that compares the first column of two files and then deletes the duplicate records of the second file.
When I run the code, I get an error that says: ^ invalid char ''' in expression
I am very new to awk coding, so I do not too sure what is causing the error. Any help would be greatly appreciated! Thanks in advance!
Code:
awk 'FNR==NR{a[$1];next};!($1 in a)' file1 file2 > file3
I am very new to awk coding, so I do not too sure what is causing the error. Any help would be greatly appreciated! Thanks in advance!