Skip to content

Instantly share code, notes, and snippets.

@ftorto
Created April 6, 2017 12:57
Show Gist options
  • Save ftorto/117825954bd5d0a49c32b5fbd8b6fbd1 to your computer and use it in GitHub Desktop.
Save ftorto/117825954bd5d0a49c32b5fbd8b6fbd1 to your computer and use it in GitHub Desktop.
Find files with only one line
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