July 2010
M T W T F S S
« Apr    
 1234
567891011
12131415161718
19202122232425
262728293031  

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

[...]