Shaikh Sonny Aman’s Blog

previously www.mailtoaman.com

dos2unix all files in current directory using find -exec

Posted on | June 14, 2007 |

$find . -exec dos2unix {} \

Sometimes we copy some source code from windows to Linux and try to compile them. The result is often
very unexpected and likely to have no clue whats the wrong! Most of the time it is due to nothing but the file format difference in Linux and windows.

dos2unix comes from almost all Linux distributions. it converts an windows file to Linux format.

Comments

2 Responses to “dos2unix all files in current directory using find -exec”

  1. aquaspark
    April 6th, 2008 @ 12:23 pm

    Not bad at all, but this topic is rather little of interest. Please do not disappoint your readership.

  2. Ryan
    April 9th, 2008 @ 2:56 am

    You have to revise your opinion. Repeating this nuttery misses your point. Give us proofs. Not just with words, but with deeds.

Leave a Reply