Git calculate lines Calculate the number of lines for specific file formats in the git repository Linux git ls-files | grep -P ".*(go|js|html|hbs)" | xargs cat | wc -l