ディレクトリ以下の総ファイル数・総ファイル行数を把握する(サブディレクトリも含む)
ファイル数を数える
ファイル全部出し
find . -type f | wc -l
ファイルの拡張子指定したいなら
find . -name "*.log" -type f | wc -l
とか
find . \( -name \*.cpp -o -name \*.rc -o -name \*.h \) -type f | wc -l
ファイルの総行数
全ファイル全部出し
find . -type f |xargs cat | wc -l
ファイルの拡張子指定したいなら
find . -name "*.log" -type f |xargs cat | wc -l
とか
find . \( -name \*.cpp -o -name \*.rc -o -name \*.h \) -type f |xargs cat | wc -l
走り書きなんで、間違ってたらごめんなさい
参考
Linux - ディレクトリ内のファイル数をカウントする - Qiita
カレントディレクトリ以下のファイルの総行数を調べる - 屑プログラマの憂鬱