uses non-breaking space as a separator and assumes that first numeric token (starting from second one) is the line number (i.e., assumes that the searched token does not contain space delimited number)
10 lines
222 B
Awk
10 lines
222 B
Awk
{
|
|
for (i = 3; i < NF; ++i) {
|
|
if ($i ~ /^[0-9]+$/) {
|
|
j = match($0, "[ ]+" $(i-1) "[ ]+" $i " ")
|
|
print substr($0, 0, j - 1) "\u00a0" $(i-1) "\u00a0" $i
|
|
break
|
|
}
|
|
}
|
|
}
|