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

175 views Asked by At

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.

1

There are 1 answers

1
Armali On

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