| http://www.w3.org/ns/prov#value | - You also do not need those null statements (trailing semi-colons) and rather than testing for $0 in data and doing next and then have an implicit print afterwards, you can just negate the test, and you do not need the first next (unless fileB is huge and efficiency is an issue) so you can just write it as awk 'FNR==NR{data[$0]} !($0 in data}' fileB fileA.
|