ls lib/unix/
Unix tools
sort, awk and friends, read in Apple's sources.
- draft awk's associative arrays: hash tables since 1979How Kernighan's awk stores an associative array, when the table grows, why for-in comes out in the order it does, and how the design changed from Seventh Edition Unix to macOS.
- draft How sort(1) sorts more data than fits in memoryHow the sort on macOS and FreeBSD splits big input into sorted temporary files and merges them back, how much memory it allows itself, and why the locale matters more than the algorithm.