linuxdos2unix

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.


Solution

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

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