windows
(Get-ChildItem -Recurse -Include *.js,*.py,*.html,*.css | Select-String .).Count
linux
find . -name "*.js" -o -name "*.py" -o -name "*.html" -o -name "*.css" | xargs cat | grep -v '^\s*$' | wc -l
*.js,*.py等为你需要的文件扩展名grep -v '^\s*$'用于过滤空行