Hi All,
I have 2 files new.txt and old.txt
cat new.txt
sku1|v1|v2|v3
sku2|v11|v22|v33
sku3|v11|v22|v33
cat old.txt
sku1|vx1|vx2|vx3
sku2|vx11|vx22|vx33
sku3|v11|v22|v33
The key column in both files are first column itself.
I want to get records in new.txt which are not there in old.txt
expected output
sku1|v1|v2|v3
sku2|v11|v22|v33
The fgrep command fgrep -v -f old.txt new.txt gives me the right answer.
But in my file ,no:of columns are 20 and length of each colums is very huge. So fgrep is very slow.. Can we replace fgrep with awk So that this will complete faster .Thnxx in advance