Plan 9 from Bell Labs’s /usr/web/sources/nix/nix/rc/bin/s/enum2sw
#!/bin/rc sed -e 's/^ / case /' \ -e 's/[ ]=.*,/,/' \ -e 's/,/:/' \ -e 's/$/\n break;/'