Trying to print array element and other stuff but awk doesnt print array element if something going after that
awk -F, 'FNR==NR{tag[$1]=$2; next} ($1 in tag) {print tag[$1], $0}' OFS=, tags.csv entries.csv
,638000,1670886539191,3,50,30
If i ask to print element in the end it prints well
awk -F, 'FNR==NR{tag[$1]=$2; next} ($1 in tag) {print $0,tag[$1]}' OFS=, tags.csv entries.csv
result:
830000,1670255312883,3,49,31,5
Also tried printf but no differ. Using GNU awk P.S. I need to put it in one line, not two separate