Base-10 addition implemented in sed