dos2unix整个目录

来源:互联网 发布:java设计小游戏代码 编辑:程序博客网 时间:2024/06/18 11:55

下面列出怎么对整个目录中的文件做dos2unix操作:

$ find . -type f -exec dos2unix {} \;

其中具体命令的解释如下:

find .
= find files in the current directory

-type f
= of type f

-exec dos2unix {} \;
= and execute dos2unix on each file found

0
原创粉丝点击