[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gawk] regexp that cannot match anything
From: |
Denis Shirokov |
Subject: |
[bug-gawk] regexp that cannot match anything |
Date: |
Mon, 21 Jan 2013 08:48:23 +0200 |
Hi GAWK!
I try to read using getline operator whole file as the single string.
As i read in the manual - var RS can be regular expression matching
record separator.
Am i right that following example will always read whole file without
separation?
BINMODE="rw"; RS="\\x00{0}"
getline d < "filename"
RS equal regexp that cannot match anything - it's meaning `character
\x00 which should be found zero times'.
Is this really works?
If no then is there a way to implement regexp that cannot match
anything? (for example by /[^.]/ - not any char)
Thank You.
- [bug-gawk] regexp that cannot match anything,
Denis Shirokov <=