Search Results

Search: Posts Made By: venkat_reddy
4,213
Posted By RavinderSingh13
Hello venkat_reddy, Could you please try...
Hello venkat_reddy,

Could you please try following and let me know if this helps you.

awk 'BEGIN{FS=","} FNR==NR{A[$1]=$0;Q=NF;next} ($1 in A){print A[$1];next} !($1 in...
4,213
Posted By RavinderSingh13
Hello venkat_reddy, Please use code tags as...
Hello venkat_reddy,

Please use code tags as per forum rules, following may help you too in same.

awk 'FNR==NR{A[$1]=$2;next} ($1 in A){print $0 OFS A[$1];next} !($1 in A){print $0 OFS...
4,213
Posted By rdrtx1
try: awk 'NR==FNR{l=$1; $1="";...
try:
awk 'NR==FNR{l=$1; $1=""; A[l]=$0;next}{print$0 (A[$1]?A[$1]:FS "missing")}' file2 file1
Showing results 1 to 3 of 3

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