dos2unix recursive folder 1

dos2unix recursive folder

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

Here is what the above code is Doing:
1. find all files in the current directory
2. print them out, separating each file with a null character
3. pass the output to xargs
4. xargs will read the input, splitting it into arguments based on the null character
5. xargs will then run the command dos2unix on each file

Similar Posts