Recursive example wrong
Dos2Unix / Unix2Dos - Text file format converters
Brought to you by:
waterlan
dos2unix 7.3.4 (2016-05-24)
The recursive example in the man page does not work and it does not handle files with quotation marks and other special characters in their names:
find . -name '*.txt' |xargs dos2unix
This works and is more safe:
find rtdata/profiles -name '*.pp3' -print0 | xargs -0 dos2unix --
or
find . -name '*.txt' -exec dos2unix {} \;
Anonymous
Hi Beep,
You are right. I will fix it. Thanks for the report.
best regards,
Erwin
Fix committed to git.
commit 37f77f1fc55342edb91e3f5ded6ffdc10475d03a