Recursive dos2unix command

Recursive dos2unix command

Found out an easy way to convert all files under a certain directory from dos format to unix:
find . -type f -exec dos2unix {} \\;
But you will need to have dos2unix installed on your system. On Ubuntu, type in the following command to install if you don’t have it already:
sudo apt-get install sysutils
Enjoy…

Leave a Reply

Your email address will not be published.

My new Snowflake Blog is now live. I will not be updating this blog anymore but will continue with new contents in the Snowflake world!