vivek gaur vivek gaur - 6 months ago 26
Linux Question

How can I run dos2unix on an entire directory?

I have to convert an entire directory using

dos2unix
. I am not able to figure out how to do this.

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

Will recursively find all files inside current directory and call for these files dos2unix command