Created
April 6, 2017 12:57
-
-
Save ftorto/117825954bd5d0a49c32b5fbd8b6fbd1 to your computer and use it in GitHub Desktop.
Find files with only one line
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
find . -type f -exec awk 'END { if (NR > 1) print FILENAME }' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment