shell搜集:统计代码行数

统计代码行数
find /a -name "*.c" |xargs cat|grep -v ^$|wc -l
------------------
abs P31
正则表达式中的单词边界.如:
bash$grep '\<the\>' textfile
------------------
大小写转换
echo abcd |tr 'a-z' 'A-Z'
echo ABCD |tr 'A-Z' 'a-z'
----------------
经典13问
http://bbs.chinaunix.net/thread-218853-1-1.html

猜你喜欢

转载自haoningabc.iteye.com/blog/1101644