Search Results

Search: Posts Made By: xshang
1,099
Posted By xshang
How to get different record in two files?
Hello, guys!

I want to find difference between two file according $1. I using the following code, but get wrong results.

awk -F, 'NR==FNR{A[$1]=$0; next} $1!=A[$1]' file1 file2

I can using...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 12:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy