13 ms·
I once wrote a network calculator in awk: https://gist.github.com/jaysoffian/e41ca479d70e60efe59fded93528ab1b https://gist.github.com/jaysoffian/e41ca479d70e60
by js2 8y ago
I once wrote a network calculator in awk:
https://gist.github.com/jaysoffian/e41ca479d70e60efe59fded93528ab1b https://gist.github.com/jaysoffian/e41ca479d70e60efe59fded93...
Backstory: circa 2000, at an early cloud company that no longer exists, we used Solaris boxes and provisioned them using JumpStart. They booted to a minimal state (we called them "embros") using DHCP. Later, our datacenter ops folks would have to switch their networking from DHCP to static as part of moving them to another network where a DHCP server didn't exist. So I wrote them this menu driven program they could run on console to help with the static configuration. (There were no high-level languages on the box save for shell, sed and awk. Even then, I apparently I had to use /usr/xpg4/bin/awk.)
- noisy_boy 8y agoThat reminds me of the xpg extension of programs on Solaris boxes - I don't remember the specifics but often if I was looking for something that wasn't in /usr/bin/* I would check for the xpg version.
- js2 8y agoxpg4 is the X/Open Portability Guide Issue 4 versions of the programs. The commands in /usr/bin on Solaris were (are?) ancient backwards compatible versions.