crlf_to_lf.sh 306 B

123456789
  1. #!/bin/sh
  2. # Copyright Hans Dembinski 2019
  3. # Distributed under the Boost Software License, Version 1.0.
  4. # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
  5. # Find files with CRLF: `find <path> -not -type d -exec file "{}" ";" | grep CRLF`
  6. perl -pi -e 's/\r\n/\n/g' $1