Search Results

Search: Posts Made By: M@LIK
8,309
Posted By neutronscott
try awk -F: 'FNR==NR{a[$1]=$2;next}$2 in...
try


awk -F: 'FNR==NR{a[$1]=$2;next}$2 in a{print $0 FS a[$2]}'
8,309
Posted By neutronscott
He used the files in reverse order. You mean,...
He used the files in reverse order. You mean, match case insensitive, but print case from file2...?


gawk -F":" "NR==FNR{a[tolower($1)]++;next}tolower($1) in a" 11.txt 22.txt


edit: i believe...
Showing results 1 to 2 of 2

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