Search Results

Search: Posts Made By: Selftaught
5,588
Posted By raj_saini20
try using gsub on $0 of file2
try using gsub on $0 of file2
5,588
Posted By elixir_sinari
OK. It seems that file2 has some white-space...
OK. It seems that file2 has some white-space before and/or after the data. Try this:
awk 'FNR==NR{a[toupper($1)]=1;next}(FNR!=1 && ($3 in a))||FNR==1' file2 file1
5,588
Posted By pamu
little bit shorter.... :) awk...
little bit shorter.... :)


awk 'FNR==NR{a[toupper($0)]=1;next}($3 in a)||FNR==1' file2 file1
5,588
Posted By elixir_sinari
awk 'FNR==NR{a[toupper($0)]=1;next}(FNR!=1 && ($3...
awk 'FNR==NR{a[toupper($0)]=1;next}(FNR!=1 && ($3 in a))||FNR==1' file2 file1
Showing results 1 to 4 of 4

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