Splitting the command up and using single quotes for the sed command.