Plan 9 from Bell Labs’s /usr/web/sources/contrib/steve/root/sys/src/cmd/mkmk/mksyslimits.rc
#!/bin/rc echo '/* Generated file, do not edit */' echo echo 'static char *Syslimits[] = {' awk ' $1 == "#define" { printf("\t\"%s\",\n", $2); } $1 == "#" && $2 == "define" { printf("\t\"%s\",\n", $3); } ' $1 echo '};'