Corrected sed commands