Search Results

Search: Posts Made By: Don Cragun
7,818
Posted By Don Cragun
Let's look at the code again in a slightly...
Let's look at the code again in a slightly different format:
1 awk -F "|" '
2 NR==FNR{
3 X[$1]=X[$1]?X[$1]"|"$2:$2
4 next
5 }
6 { if(X[$1]) print $0"|"X[$1]
7 else...
7,818
Posted By Don Cragun
awk -F "|" 'BEGIN { OFS = "|" } FNR == NR { ...
awk -F "|" 'BEGIN { OFS = "|" }
FNR == NR {
a[$1] = NF
for(i = 2; i <= NF; i++) a[$1,i] = $i
next
}
{ for(i = 2; i <= NF; i++) $i = a[$1,i] " -> " $i
...
Showing results 1 to 2 of 2

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