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$//‘
Written by Łukasz Nośko
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#