I am running the following command which works great as long as their is content in the first file:
awk -F, 'FNR==NR {a[tolower($1)]++; next} !a[tolower($1)]' OutSideSyncUsers.csv NewUsers.csv
If the first file is empty, the command doesnt work. I found online this reference:
all the programs that use the two-files idiom will not work correctly if the first file is empty (in that case, awk will execute the actions associated to NR==FNR while reading the second file). To correct that, you can reinforce the NR==FNR condition by adding a test that checks that also FILENAME equals ARGV[1].
Im not sure I understand how (or where) in the query to add the test check equals ARGV[1]
Any help would be apperciated