Skip to content

Instantly share code, notes, and snippets.

@techentertainer
Last active September 19, 2019 21:34
Show Gist options
  • Select an option

  • Save techentertainer/1b1224eedc70ba857affebc41a84615f to your computer and use it in GitHub Desktop.

Select an option

Save techentertainer/1b1224eedc70ba857affebc41a84615f to your computer and use it in GitHub Desktop.
Lines in a folder excluding the given paths and files
Backend:
find . \( -path '*/migrations' -o -path '*/bin' -o -path '*/.git' -o -path '*/.idea' -o -path './GeoLiteCity.dat' -o -path '*/fonts' -o -path '*.png' -o -path '*.jpg' -o -path '*.pk' -o -path '*/.github' -o -path '*/plugins' -o -path '*.zip' -o -path '*/static' \) -prune -o -type f -exec cat {} + | wc -l
Web Frontend:
find . \( -path '*/font' -o -path '*/css' -o -path '*/componentcss' -o -path '*/node_modules' -o -path '*/.git' -o -path '*/.github' -o -path '*/images' -o -path '*/npm-debug.log' -o -path '*/package-lock.json' -o -path '*/.idea' -o -path '*/.vscode' \) -prune -o -type f -exec cat {} + | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment