(不用unix2doc)解决cygwin的输出重定向文件时遇到系统区分不了换行

在cygwin中spa cat “hello” >demo.txt操作系统 你系统获得一个demo.txt文件,而后事实并不会你想的那样,你能够unix ls -al 下载 返回:demo ....  'demo.txt'$'\r'文件 你获得的不是【demo.txt】而是【demo.txt$\r】cygwin why?手册 由于unix系列的系统换行符是\n系统 而win系列的换行是\r 因此入
相关文章
相关标签/搜索