February 2012
M T W T F S S
« Apr    
 12345
6789101112
13141516171819
20212223242526
272829  

Shell Scripts: using wc and grep and awk

1. count the code lines using wc.

1: wc -l `find . -name *.c`

2. count the code lines, using an elegant way "xargs" to transfer the arguments of wc

1: find . -name *.c |xargs wc -l

3. count the code lines, self calculation the result of wc using awk

[...]