Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Recursively find all files and convert to unix format (excluding those in svn dirs) (See related posts)

find . -type f \! -path "*svn*" -exec dos2unix {} \;


My local dev box is Windows but my prod server is BSD. To make sure all files are in the correct format (LF rather than CRLF), I run this after doing my svn update on the server.

Hat tip: Ryan @ Textdrive.

You need to create an account or log in to post comments to this site.


Click here to browse all 5140 code snippets

Related Posts