Search Results

Search: Posts Made By: falcox
4,727
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
4,727
Posted By Scrutinizer
try: awk 'p!=$1{if(p)print s; p=s=$1}...
try:
awk 'p!=$1{if(p)print s; p=s=$1} {sub(p,x); s=s $0} END{if(p)print s}' FS='\t' file
4,727
Posted By rdrtx1
try: awk ' !(a[$1]) {a[$1]=$0} a[$1] {w=$1;...
try:
awk '
!(a[$1]) {a[$1]=$0}
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 3 of 3

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