Linuxdos2unix "Skipping binary file" - LinuxOliver · 2012-03-16Table of ContentsPostCommentsRelated Posts請問一下 dos2unix 出現現面的訊息 "Skipping binary file" 但是我檔案是 .c & .h file 不是 binary file 請問怎麼會這樣? 謝謝 -- LinuxAll CommentsGilbert2012-03-17你是不是程式中有中文字?可以用這命令:tr -d '\r' < abc.c > abc.c.newCarolina Franco2012-03-21這就相當於dos2unix,不過這命令只能在linux做Ida2012-03-25no... code & commit 都是英文Skylar DavisLinda2012-03-27那就奇怪了,還是你存成utf8格式?MS會在前面放三個bytesHardy2012-03-28如果是在windows下,用notepad看,或存成ANSI不可是UTF-8Sandy2012-03-28sed -i'' "s/\r//" `find . -type f -iname "*.[ch]"`上面這招就搞定了Related Posts請教關於電源管理一個pkg-config的問題crontab 搭配 expect純文字檔案中的Tab怎麼移除?g++使用問題
All Comments