[Webfunds-commits] scripts how_much

Ian Grigg iang@cypherpunks.ai
Sat, 20 Jan 2001 09:56:38 -0400 (AST)


iang        01/01/20 09:56:38

  Added:       .        how_much
  Log:
  counts up lines of code

Revision  Changes    Path
1.1                  scripts/how_much

Index: how_much
===================================================================

find_list=$( find . -name '*.java' -print )

echo $find_list | wc -w


# hard core code lines, not comments nor { }

cat $find_list | grep -v -E '^[ 	]*$|^[ 	]*[/*][/*]*|^[ 	{}]*$' | wc -l

# lines with useful comments

cat $find_list | grep -v -E '^[ 	]*$|^[ 	]*[/*][/* 	]*$' | wc -l