grep -c -e "$" -r -h . | python -c "import sys; a = sys.stdin.read().strip().split(); a = [int(x) for x in a]; print(sum(a));"
NAME_PATTERN="*.cc" find . -type f -name "${NAME_PATTERN}" -print0 |xargs -0 -n1 grep -c -e "$" | python -c "import sys; a = sys.stdin.read().strip().split(); a = [int(x) for x in a]; print(sum(a));"
|