Archive

Posts Tagged ‘dos’

DOS to Unix Text Conversion

July 6th, 2008 1 comment

Every once in a while archives contain DOS formatted text files – they contain carriage returns in addition to Unix-style linefeeds. Depending on the project, these may cause all sorts of subtle problems.

The following command recursively strips carriage returns from all files in this and lower folders.

find . -type f -exec dos2unix '{}' ;
Categories: Uncategorized Tags: , , ,