Wednesday, October 7, 2009

Converting dos(windows) files to unix files

by Sandip Ransing 0 comments


While using windows we get ^M characters in files that will get displayed when you open files on unix machines.


To remove such ^M characters,


Install dos2unix package using


sudo apt-get install sysutils


Convert individual file


dos2unix file_path


Run following command to convert recursively all the files inside directory.



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




sudo apt-get install sysutils

blog comments powered by Disqus

About The Author

Sandip is a ruby on rails developer based in pune and also a blogger at funonrails. Opensource contributor and working with Josh software Private Limited. for more info read Follow Sandip on Twitter for updates.

Connect With Me...

Github Projects

@sandipransing Twitter