git line count git ls-files | grep -E '.(ts|tsx|js|jsx)$' | xargs wc --lines output: $ git ls-files | grep -e '.ts$' -e '.tsx$' | xargs wc --lines 10 src/App.tsx 20 src/index.tsx 30 total