bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Help ourself


From: Budi
Subject: Re: [bug-gawk] Help ourself
Date: Fri, 26 Apr 2019 11:23:55 +0700

FS=" *"
How to get automatically FS to be a space, or 3 spaces, or 6 spaces
according the regex result at that very point in time ???

just like RT feature for record !

On 4/26/19, Eric Pruitt <address@hidden> wrote:
> On Fri, Apr 26, 2019 at 06:22:21AM +0700, Budi wrote:
>> How to have value of true literal string of regex patterned FS ?
>> Can be requested as a feature if not able to?
>
> I'm not certain I understand your question, but if I do, the answer is
> to escape all of the characters. The simplest way to do that would be to
> wrap every character in brackets. In terms of AWK, this would be
> 'gsub(/./, "[&]", literal_fs); FS = literal_fs;'.
>
> Eric
>
>



reply via email to

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