bug-gawk
[Top][All Lists]
Advanced

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

Re: Native file exist check


From: Neil R. Ormos
Subject: Re: Native file exist check
Date: Fri, 5 Jun 2020 10:15:12 -0500 (CDT)

Peng Yu wrote:

> https://stackoverflow.com/questions/29284472/awk-check-file-exists
>
> The following solution is shown above. But getline could potentially
> read too much (for example processing a binary file in which a line
> can be very long). [...]

Consider whether setting RS to "." resolves the concern that getline might read 
"too much".

  <https://www.gnu.org/software/gawk/manual/gawk.html#gawk-split-records>



reply via email to

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