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

195 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 best solutions below

1
On

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