Task: Prints total number of lines of all *.java files in /testbed folder and subfolders.
Command: find /testbed -name '*.java' -print0 |xargs -0 wc -l|grep 'total' |awk '{ print $1 }'
Equivalent command: find /testbed -name "*.java" -exec wc -l {} + | awk '{s=$1} END {print s}'