windows下sed回车换行符处理如果用sed for windows对整个文件进行了编辑,编辑之后一般需要处理回车换行符:rem windows的回车换行符是\r\n,linux的是\n,所以要替换:sed -i -e "s/$/\r/g" "%bootdisk%\menu.lst"