Search Results

Search: Posts Made By: Akshay Hegde
2,825
Posted By Akshay Hegde
Hi Satece, Actually your code in #5 looks...
Hi Satece,

Actually your code in #5 looks fine, I just posted another way to do so, please do check your input file once again.
2,825
Posted By Akshay Hegde
[akshay@localhost tmp]$ cat f1 a1,b1,1 ...
[akshay@localhost tmp]$ cat f1
a1,b1,1
a2,b2,2
a3,b4,3
a4,b3,4
[akshay@localhost tmp]$ cat f2
5,a1,b1
6,a2,b2
7,a3,b3
8,a4,b4


$ awk -F, 'FNR==NR{a[$2,$3];next}($1,$2) in a' f2 f1...
Showing results 1 to 2 of 2

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