Created
September 22, 2019 20:24
-
-
Save ivanstepanovftw/8fc273ff92f1d91c542036f11f0fbaa2 to your computer and use it in GitHub Desktop.
CRLF to LF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
perl -pi -e 's/\r\n/\n/g; $rv=1 if $&; END{ exit $1rv }' $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment