Created
December 13, 2013 18:10
-
-
Save AlexChittock/7948587 to your computer and use it in GitHub Desktop.
Tool for converting line-endings across a number of files. Requires dos2unix.
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/bash | |
if [[ $# -ne 1]]; then | |
echo "usage: line-endings.sh file-pattern" | |
echo "while file-pattern is a glob-like pattern to match files to" | |
echo | |
exit 1 | |
fi | |
find . -path $1 | xargs dos2unix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment