Search Results

Search: Posts Made By: atb299
3,606
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
3,606
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...
Showing results 1 to 2 of 2

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