Note to self: a shell script will always be quicker and easier to write than a Go program for a throwaway thing, no matter how much you wished it to be otherwise.