bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to substitute in a string for the first n matches?


From: Peng Yu
Subject: How to substitute in a string for the first n matches?
Date: Fri, 26 Mar 2021 15:02:29 -0500

Hi,

man gawk says.

"""
gensub(r, s, h [, t])

h is a number indicating which match of r to replace.
"""

Is there a way to perform string substitution for the first n matches in awk?

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]