Count lines of code by extension

Bash

A quick census of a repository without installing a tool for it.

find . -type f -name '*.js' -not -path './node_modules/*' \
  | xargs wc -l \
  | tail -1

More in Shell

Random picks