Search Results

Search: Posts Made By: arsalane
2,263
Posted By Scrutinizer
Hi, try: awk 'NR==FNR{A[$1]=$2; next} {print...
Hi, try:
awk 'NR==FNR{A[$1]=$2; next} {print $1, $1 in A? A[$1]:0}' file2 file1
4,581
Posted By rdrtx1
Fixed, try: awk ' !(a[$1]) {a[$1]=$0; next} ...
Fixed, try:
awk '
!(a[$1]) {a[$1]=$0; next}
a[$1] {w=$1; $1=""; a[w]=a[w] $0}
END {for (i in a) print a[i]}
' FS="\t" OFS="\t" infile
Showing results 1 to 2 of 2

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