Created
July 8, 2020 07:27
-
-
Save Himura2la/3ab71dca4a0bb79d9b4ff946a0dd2189 to your computer and use it in GitHub Desktop.
dos2unix with find and sed
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
find . -type f -regex '.*\.\(yml\|json\)$' -exec sed -i $'s/\r$//' '{}' \; -exec echo "Line endings changed to LF in {}" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment