NetBSD-Bugs archive

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

bin/56743: Cannot create more than 1022 files from an AWK program



>Number:         56743
>Category:       bin
>Synopsis:       Cannot create more than 1022 files from an AWK program
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 09 16:10:01 +0000 2022
>Originator:     Silas Silva
>Release:        NetBSD 9.2
>Organization:
>Environment:
System: NetBSD auron 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	It is not possible to create more than 1022 files using using awk '>'
	operator. Probably because it keeps files opened and runs out of
	available file descriptors.

	Being able to create thousands of files is a useful feature if one wants
	to split a very large file into multiple files based on a regular
	expression pattern.
>How-To-Repeat:
	$ cd /tmp
	$ seq 1 2000 | awk '{ print "test" > $0 }'
	awk: can't open file 1022
	input record number 1022, file 
	source line number 1
>Fix:



Home | Main Index | Thread Index | Old Index