Skip to content

Instantly share code, notes, and snippets.

@thedava
Last active November 13, 2020 21:37
Show Gist options
  • Save thedava/ab8844eab95c979918bbdaf1fea6ecc4 to your computer and use it in GitHub Desktop.
Save thedava/ab8844eab95c979918bbdaf1fea6ecc4 to your computer and use it in GitHub Desktop.
Convert line endings to LF
find . \
-name "*.conf" \
-o -name "Dockerfile" \
-o -name ".dockerignore" \
-o -name ".gitignore" \
-o -name ".gitkeep" \
-o -name "*Jenkinsfile" \
-o -name "*.js" \
-o -name "*.json" \
-o -name "*.lock" \
-o -name "*.php" \
-o -name "*.phtml" \
-o -name "*.scss" \
-o -name "*.sh" \
-o -name "*.yaml" \
-o -name "*.yml" \
| grep -v "vendor" | xargs dos2unix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment