Skip to content

Instantly share code, notes, and snippets.

@dusansimic
Created July 12, 2017 01:24
Show Gist options
  • Save dusansimic/323f591eee56660e209fd92fb12774cd to your computer and use it in GitHub Desktop.
Save dusansimic/323f591eee56660e209fd92fb12774cd to your computer and use it in GitHub Desktop.
Count lines of all files in the directory
#!/bin/bash
find . -name '<include files>' -not -path '<exclude dir>' | xargs wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment