Search Results

Search: Posts Made By: Scrutinizer
1,115
Posted By Scrutinizer
OK, so like this? awk ' NR == FNR { ...
OK, so like this?
awk '
NR == FNR {
a[$1,$2,$3] = $4
next
}

FNR==1 {
print
next
}

($5,$6,$7) in a {
if (a[$5,$6,$7]>3){
$22=a[$5,$6,$7]
...
1,115
Posted By Scrutinizer
Your requirements are not immediately clear to...
Your requirements are not immediately clear to me. Perhaps this is more what you mean:
awk '
NR == FNR {
a[$1,$2,$3] = $4
next
}

FNR==1 {
print
next
}

{
...
1,115
Posted By Scrutinizer
Try something like this: awk ' NR == FNR { ...
Try something like this:
awk '
NR == FNR {
a[$1,$2,$3] = $4
next
}

($5,$6,$7) in a {
if ($22 == a[$5,$6,$7]){
print
}
next
}

{
$22="Unknown"...
Showing results 1 to 3 of 3

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