Skip to content

Instantly share code, notes, and snippets.

@spyesx
Last active February 28, 2018 01:57
Show Gist options
  • Save spyesx/357d251f7b14fb4179ecb5d8b84f4212 to your computer and use it in GitHub Desktop.
Save spyesx/357d251f7b14fb4179ecb5d8b84f4212 to your computer and use it in GitHub Desktop.
Count all the lines of code in a directory recursively
# https://explainshell.com/explain?cmd=find+.+-name+%27*.php%27+-o+-name+%27*.twig%27+%7C+xargs+wc+-l
find . -name '*.php' -o -name '*.twig' | xargs wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment