Skip to content

Instantly share code, notes, and snippets.

@matiasmicheletto
Created November 6, 2022 00:27
Show Gist options
  • Save matiasmicheletto/9577782ef4e6d4c6fa6dfe579875190e to your computer and use it in GitHub Desktop.
Save matiasmicheletto/9577782ef4e6d4c6fa6dfe579875190e to your computer and use it in GitHub Desktop.
Count the lines of code in a software project using linux bash command
# Recursively count the total number of lines of code in .js and .jsx files found in a directory.
find . -name '*.js' -o -name '*.jsx' | xargs wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment