Skip to content

Instantly share code, notes, and snippets.

@valentinconan
valentinconan / dos2unix.md
Created June 23, 2017 14:05 — forked from umidjons/dos2unix.md
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