Using the field $NF of other file to filter on the main file
FNR==NR { ... } is a commonly used construct that returns true for only the first file in the arguments list. In this case, awk will read the file other first. When this file is being processed, the value in the last column ($NF) is added to an array (which we have called x). Next then skips processing the rest of our code and begin processing the remainder of the code which is applied to the second file in the arguments list, main. ($NF in x) will print the line if $NF is not in the array.