Skip to content

Instantly share code, notes, and snippets.

@ghsatpute
Created May 17, 2020 11:46
Show Gist options
  • Save ghsatpute/b71f1aa084a76cf066ba6d0b2c0151ed to your computer and use it in GitHub Desktop.
Save ghsatpute/b71f1aa084a76cf066ba6d0b2c0151ed to your computer and use it in GitHub Desktop.
Counting all the lines in current directory recursively

Below command recursively counts number of lines in current directory. It excludes certain directories such as ./target/, ./.idea/, etc.

find . ! -path "./target/*" ! -path "./.mvn/*" ! -path "./.idea/*" -name "*" |  xargs wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment