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

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

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

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.
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS