3 ms·
You can't reference the results of capture groups in line patterns in gawk, unless you use the match() function. You can write: match($0, /...(...).../, arr)
by layer8 4y ago
You can't reference the results of capture groups in line patterns in gawk, unless you use the match() function. You can write:
match($0, /...(...).../, arr) { ...refer to arr[i]... }
But you can't write:
/...(...).../ { ...refer to a capture group somehow... }