Skip to content

Instantly share code, notes, and snippets.

@chmelevskij
Last active September 30, 2016 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chmelevskij/4f3bd504cbef5ef92e7c1d5b387f9fa0 to your computer and use it in GitHub Desktop.
Save chmelevskij/4f3bd504cbef5ef92e7c1d5b387f9fa0 to your computer and use it in GitHub Desktop.
Dirty line count of the project in bash
#!/bin/bash
# egrep or grep -e can be used
# gollabedit|golang-web|css was stuff to exclude
find $(pwd) | egrep -vi '/\.|gollabedit|golang-web|/css/|\.log' | xargs wc -l 2> /dev/null | sed "s|$PWD||"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment