使用linux命令統(tǒng)計java代碼行數(shù)
想看一下自己寫的代碼行數(shù),google了一下,參考這里[http://www.80x86.cn/article.asp?id=1722]
#!/bin/bash
count=$(find -name "*.java" -type f -exec cat {} \; | wc -l)
echo "Total >$count"
count=$(find -name "*.java" -type f -exec cat {} \; | wc -l)
echo "Total >$count"
posted on 2008-08-22 17:34 daning 閱讀(676) 評論(0) 編輯 收藏 所屬分類: XWiki 、ubuntu