Search Results

Search: Posts Made By: atb299
3,605
Posted By ctsgnb
Note that vgersh99's code assume that $2 of the...
Note that vgersh99's code assume that $2 of the filter file are all distincts...

(which is currently the case in the given example, but if your real filter file is bigger, you should then check...
3,605
Posted By vgersh99
awk 'NR==FNR{a[$2]=$1;next}$1 in a {print a[$1],...
awk 'NR==FNR{a[$2]=$1;next}$1 in a {print a[$1], $0}' FS=":" OFS=: filter.dat data.dat >! out.dat
Showing results 1 to 2 of 2

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