linux - Counting all .class files -
i want count .class
file in project directory. working on ubuntu. can list class file -
find . -type f -name '*.class'
it lists lot of .class
files. want know count of these .class
files. there way in linux.
thanks.
use wc -l
.
wc
stands "word count", , -l
flag makes count lines.
since command outputs line per file1, counting lines means counting files.
find . -type f -name '*.class' | wc -l
1 please note @chepner's comment
Comments
Post a Comment