[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
- How to substitute in a string for the first n matches?,
Peng Yu <=
- Re: How to substitute in a string for the first n matches?, david kerns, 2021/03/26
- Re: How to substitute in a string for the first n matches?, arnold, 2021/03/29
- Re: How to substitute in a string for the first n matches?, arnold, 2021/03/29
- Re: How to substitute in a string for the first n matches?, Wolfgang Laun, 2021/03/29
- Re: How to substitute in a string for the first n matches?, Peng Yu, 2021/03/29
- Re: How to substitute in a string for the first n matches?, Wolfgang Laun, 2021/03/29
- Re: How to substitute in a string for the first n matches?, arnold, 2021/03/29