Skip to content

Instantly share code, notes, and snippets.

@ericwastaken
Created October 23, 2017 17:34
Show Gist options
  • Save ericwastaken/89d4afe45662888a4a16f538f8a97bb4 to your computer and use it in GitHub Desktop.
Save ericwastaken/89d4afe45662888a4a16f538f8a97bb4 to your computer and use it in GitHub Desktop.
List files that don't have Linux file endings
# 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