Created
October 23, 2017 17:34
-
-
Save ericwastaken/89d4afe45662888a4a16f538f8a97bb4 to your computer and use it in GitHub Desktop.
List files that don't have Linux file endings
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
| # Run from the root of the directory that contains files and subdirectories. | |
| # Dependencies: find, file | |
| # Fina all files, then execute FILE on them, filter for the string 'CRLF' | |
| find . -type f -exec file "{}" \; | grep CRLF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment