有个WIN文件放到LINUX服务器上处理的时候,由于编码的问题,导致无法过滤,此时需要对文件进行处理

cat file | tr -s "\r" "\n" > new_file

posted on 2016-01-15 11:39  懒睡的猫熊  阅读(269)  评论(0编辑  收藏  举报