How to use Dos2Unix recursively


Last modified: 08.02.2021
estimated reading time < 1 min

dos2unix is a small commandline app, that changes the line ending of text files from Windows to Unix.

If you want to use dos2unix recursively from the current directory type the following command:

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

The outcome will looks similar to this:

Was this article helpful?
Dislike 0
Views: 24