Finally the sed command from hell