#!/bin/bash DEFAULT_KEY='0x94F3D3DDAC22802258FC044B6C47C753F0823002' sed "s|^#default-key\\s*.*\$|default-key ${DEFAULT_KEY}|" < gpg.conf.template > gpg.conf