# shortly
while read -r subproj ; do lines=$(find $subproj -type f -exec cat {} + | wc -l); printf "%-20s %12d \n" $subproj $lines ; done < <(find . -name src) | sort -nr
ls -1
cnf
dat
doc
lib
src
# how-many lines in source ?!
export dir="src" ; find $dir -type f -exec cat {} + | wc -l
49943
# how-many lines in configuration files ?!
export dir="cnf" ; find $dir -type f -exec cat {} + | wc -l
952
# so how-many lines in docs ?!
export dir="doc" ; find $dir -type f -exec cat {} + | wc -l
41335
# how-many lines alltogether in source files , cnf files and docs
export dir="src cnf doc" ; find $dir -type f -exec cat {} + | wc -l
92230
# so how about data
export dir="dat" ; find $dir -type f -exec cat {} + | wc -l
171453
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!