简体   繁体   English

转换目录下所有非二进制文件中的行尾

[英]Convert line endings in all non-binary files under a directory

Is it feasible to fix line endings in all non-binary files under a directory? 在目录下的所有非二进制文件中修复行尾是否可行?
There are a lot of answers how to fix line endings in a file. 如何解决文件中的行尾有很多答案。
I'm wondering if it is possible for the command to analyze all files and fix only those which needed. 我想知道命令是否有可能分析所有文件并仅修复需要的文件。

find ./ -type f -exec dos2unix {} \\; source – Mykhaylo Adamovych 来源 – Mykhaylo Adamovych

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM