Skip to content

Instantly share code, notes, and snippets.

View josherrickson's full-sized avatar

Josh Errickson josherrickson

View GitHub Profile
@umidjons
umidjons / dos2unix.md
Created July 18, 2014 04:55
Execute dos2unix for directory recursively.

Will recursively find all files inside current directory and call for these files dos2unix command. Would break if you had spaces in file name.

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

Wouldn't break if you had spaces in file names.

find . -type f -print0 | xargs -0 dos2unix