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.
awk 'FNR==NR{a[$1];next};!($1 in a)' file1 file2 > file3
When I run the code, I get an error that says: ^ invalid char ''' in expression
I am very new to awk...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.