sed to determine t