Our Blog

Let us find tech solutions together

Apr 20

Getting Word Count in Java Resource Bundle .properties files

By kinabalu | Comments

 

With a little help from freenode folks in ##java and #awk .. I’ve got a one liner which will give you a word count for your resource bundle files:

1
grep -vE '^#' YourResourceBundle.properties | cut -d = -f 2 | wc -w

whew.