Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有一种命令行方法可以递归地遍历目录并将所有 PHP 文件中的所有 \n\r 更改为 \n ?
我正在使用 CentOS。
是的,有一个命令行,但是可以在你的机器上安装一个更简单的宏命令:dos2unix
见http://linux.about.com/od/commands/l/blcmdl1_dos2uni.htm