File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- common=` find ./source/common -maxdepth 1 -type f \( -name " *.cpp" -or -name " *.h" \) -print0 | xargs -0 cat | grep -v -e ^// -e ^$ -e " ^[ ]\*" -e " $\*" | wc -l`
4
- docker=` find ./source/docker -type f \( -name " *.cpp" -or -name " *.h" \) -print0 | xargs -0 cat | grep -v -e ^// -e ^$ -e " ^[ ]\*" -e " $\*" | wc -l`
5
- world=` find ./source/world -type f \( -name " *.cpp" -or -name " *.h" \) -print0 | xargs -0 cat | grep -v -e ^// -e ^$ -e " ^[ ]\*" -e " $\*" | wc -l`
6
- echo " total common=$common docker=$docker world=$world "
3
+ common=` find ./source/common -maxdepth 1 -type f \( -name " *.cpp" -or -name " *.h" \) -print0 | xargs -0 cat | grep -v -e ^// -e ^$ -e " ^[ ]\*" -e " $\*" | wc -l | awk ' {print $1} ' `
4
+ docker=` find ./source/docker -type f \( -name " *.cpp" -or -name " *.h" \) -print0 | xargs -0 cat | grep -v -e ^// -e ^$ -e " ^[ ]\*" -e " $\*" | wc -l| awk ' {print $1} ' `
5
+ world=` find ./source/world -type f \( -name " *.cpp" -or -name " *.h" \) -print0 | xargs -0 cat | grep -v -e ^// -e ^$ -e " ^[ ]\*" -e " $\*" | wc -l| awk ' {print $1} ' `
6
+ echo " total common=$common , docker=$docker , world=$world "
You can’t perform that action at this time.
0 commit comments