Counting the lines of code in a project (shell) Subscribe Pub Share

like so:

cd ~/src
find . -name "*.java" -exec wc -l {} \; | awk '{ SUM += $1} END { print SUM }'

this is cool...


Was this useful?    

By: Razie | 2015-04-15 .. 2016-05-16 | Tags: post , programming


See more in: Cool Scala Subscribe

Viewed 825 times ( | History | Print ) this page.

You need to log in to post a comment!