Over at the Emacs reddit, zoldberghoneydew presents an interesting problem and solution. The problem boils down to creating a hosts file of the form
host1 ip-address-of-host-1 ... host64 ip-address-of-host-64
where the address of host-n can be looked up in DNS with dig
.
Zoldberghoneydew’s solution is nice but a bit over complicated. The challenge is to produce this file with the minimum keystrokes possible.