NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/56743: Cannot create more than 1022 files from an AWK program
On Wed, Mar 09, 2022 at 06:30:02PM +0000, Michael van Elst wrote:
> The awk '>' operator works differently than a shell redirect. It opens
> the file and keeps it open, more output to the same file will just
> use the open descriptor. You need to use the close() statement to
> close the descriptor.
Thanks for the answer! Indeed, it works with close(). For the record: GNU awk
seems to be able to create all 2000 files without having to call close(). Thanks
again.
Home |
Main Index |
Thread Index |
Old Index