Last Updated: February 25, 2016
·
361
· snejku

Quick convert Win new lines character in a dir

Converts win new lines characters to unix recursive in a specified dir
Omits binary files, see man grep for the details.

grep -rIlZ $'\r' * | xargs -0 sed -i 's/\r$//‘