bug-gawk
[Top][All Lists]
Advanced

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

Re: $0 reconstructed with separator OFS - instead of FS - upon change of


From: J Naman
Subject: Re: $0 reconstructed with separator OFS - instead of FS - upon change of a field
Date: Mon, 20 Jan 2025 12:19:35 -0500

Not a Bug! I have used OFS in 240 uniquely named gawk files, mostly, but
not always to output TSV (tab-separated variables) or CSV. And I have a
method to NOT reconstitute $0 at inconvenient times.
r0 = $0; sub(..., r0); r0=gensub(..., r0); $0 = r0 or just print r0
- John


reply via email to

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