grep linux command line can only use regular expressions
find . -name "*.java"|xargs cat|grep -v -e ^$ -e ^\s*\/\/.*$|wc -l
Learn the way to a regular expression, originally released in rookie tool ( https://www.cnblogs.com/zilongmao/p/8487149.html )