Skip to content

Instantly share code, notes, and snippets.

@zidarsk8
Last active November 23, 2017 17:38
Show Gist options
  • Save zidarsk8/6e748b66c7dcff0c2ed8bbf71908ebd9 to your computer and use it in GitHub Desktop.
Save zidarsk8/6e748b66c7dcff0c2ed8bbf71908ebd9 to your computer and use it in GitHub Desktop.
zidar@dashie ~/programming/ggrc-core
$ git grep "Copyright (C) 2017 Google Inc." . | grep -o "^[^:]*" | grep -v "^third_party" | sort -u > with_copyright
zidar@dashie ~/programming/ggrc-core
$ git ls-files | grep -v "^third_party" | sort > all_files
zidar@dashie ~/programming/ggrc-core
$ meld all_files with_copyright
zidar@dashie ~/programming/ggrc-core
$ diff all_files with_copyright | grep "^<" | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment