You should have a shutoff valve on every pipe that goes through an external wall. Before bitter cold like that, turn off the valve and drain that pipe. If it is supplying an outdoor spigot, that shutoff should just be part of your winter prep.
(And yes - I, too, learned that the hard way.)