-
-
Save malikshi/ce9429f2be6c9e70f22d5a8d9610d7c6 to your computer and use it in GitHub Desktop.
Shell script to convert files with CRLF to LF (Mac/Linux)
This file contains 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
#! /bin/sh | |
for x | |
do | |
echo "Converting $x" | |
tr -d '\015' < "$x" > "tmp.$x" | |
mv "tmp.$x" "$x" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment