Skip to content

Instantly share code, notes, and snippets.

@artisanalcode
Created October 16, 2020 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artisanalcode/ff863060a38658c72f03b17df1469a2c to your computer and use it in GitHub Desktop.
Save artisanalcode/ff863060a38658c72f03b17df1469a2c to your computer and use it in GitHub Desktop.
Count lines on .properties files
find . -type f -name "*.properties" -exec grep -H -c '[^[:space:]]' {} \; | sort -nr -t":" -k2 | awk -F: '{print $1; exit;}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment