Skip to content
Advertisement

How can I run dos2unix on an entire directory? [closed]

I have to convert an entire directory using dos2unix. I am not able to figure out how to do this.

Advertisement

Answer

find . -type f -print0 | xargs -0 dos2unix

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

Advertisement