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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -